[jboss-user] [JBoss Microcontainer Development] - JBoss Reflect Performance Javassist vs Introspection

Flavia Rainone do-not-reply at jboss.com
Fri Apr 16 08:26:51 EDT 2010


Flavia Rainone [http://community.jboss.org/people/flavia.rainone%40jboss.com] replied to the discussion

"JBoss Reflect Performance Javassist vs Introspection"

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

--------------------------------------------------------------
> Kabir Khan wrote:
> 
> The question is what differentiator to use? A few ideas:
> * Keep a counter in Javassist[Method/Field/Constructor]Info and once it has been called several times switch to the generated class. The problem with this is, what if this counter kicks in and we end up generating the class and then we don't have enough subsequent accesses to reap the performance benefits, i.e. in this case it would slow it down.
> * Use some annotation to say that for a particular class we should always use generated members. If this annotation comes from MC BeanMetaData it could be put into the TypeInfo attachments.
> 
I vote for using a combination of those two diferentiators.

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

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100416/8a952124/attachment.html 


More information about the jboss-user mailing list