• Post Reply Bookmark Topic Watch Topic
  • New Topic

singleton class performance isssue.  RSS feed

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

is java singleton classes creates the performance issues.

suppose if I get the instance of a class and from that I'm calling a method 10 times.

Will it affect the performance for my program.


thanks
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I don't think singleton will create any performance issues unless the methods in the singleton class are synchronized...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!