• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 actions thread safe

 
sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Struts 2 actions are thread safe so for each request it creates a new object.

How come generating one more object does not impose a performance penalty in struts2?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creating objects is an insignificant amount of work compare to what the actions do. This "performance penalty" would be negligible.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!