Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] replied 
to the discussion

"JBoss Reflect Performance Javassist vs Introspection"

To view the discussion, visit: http://community.jboss.org/message/544244#544244

--------------------------------------------------------------
Ales mentioned that it might be worth looking at making the original 
implementation lazy instead of introducing an extra "wrapper", which sounded 
like a good idea.

However, thinking about this a bit more I then end up having to hit the 
classpool which is what I wanted to avoid in the first place. The reason is 
that when calling i.e. JavassistMethodInfo.getReturnType() we don't know the 
classpool/loader of the return type, instead we call get() in my previous post 
with the MethodInfo.getDeclaringClass()'s classloader, which is the only way I 
can think of to find the classloader. Otherwise we end up possibly using the 
wrong cache when obtaining the type info. So although we avoid the overhead of 
b) in my last post we still end up with a)

If I am to go forward with doing it this way, then I think we'll have to look 
into optimizing the classpools.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/544244#544244]

Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to