• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any way to summarize the total reflection operation in my code?  RSS feed

 
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
i have application contains lots of source files ( not my )
that i need to try and make it run faster one thing i notice the application uses allot of reflection code
i like to try and make it more efficient code maybe to remove reflection where i can or maybe to add some
caching .
my question is how can i get all the places that using reflection ? im using eclipse .
 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

that i need to try and make it run faster one thing i notice the application uses allot of reflection code

And is it the reflection code that is causing your hotspot? What have you done to prove this is where your performance bottleneck is? No sense "fixing" something that may not be the issue.
[ June 18, 2008: Message edited by: Paul Sturrock ]
 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed. Your first step is to make some performance measurements with a profiler.
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with the comments above that you should profile your application to find hotspots before you do anything to optimize. Having said that, you can use your IDE (or a command line search tool if you're old school) to search for *.java files that import java.lang.reflect if you still think reflection is the cause.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!