[jboss-dev-forums] [Design of POJO Server] - Re: Various performance issues in core projects
jaikiran
do-not-reply at jboss.com
Thu May 7 12:06:42 EDT 2009
"jaikiran" wrote : Profiler shows me there are 33232 calls to the Class.getDeclaredMethods() each taking an average of 297 micro sec. I changed the implementation of these methods (findMethod, findConstructor and findField) and see good enough performance improvements
|
Carlo and me have been playing with various combinations of class hierarchy and number of methods. The existing implementation in ReflectionUtils (i.e. call to getDeclaredMethods()) performs better when the classes are hierarchical and the numbers of methods in this hierarchy is less. However, if the number of methods starts increasing or if there is no/less hierarchy involved in the classes, then the proposed change performs better.
So its really a question of which is the right scenario.
As for the rest of the changes/questions mentioned in my previous post, they still hold good.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229489#4229489
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229489
More information about the jboss-dev-forums
mailing list