• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 actions thread safe  RSS feed

 
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: 37395
531
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!