[jboss-user] [JBoss Microcontainer Development] New message: "Re: Profiling the kernel project"

Kabir Khan do-not-reply at jboss.com
Thu Feb 18 12:42:11 EST 2010


User development,

A new message was posted in the thread "Profiling the kernel project":

http://community.jboss.org/message/527084#527084

Author  : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com

Message:
--------------------------------------------------------------
Changing CommonAnnotationAdapter to not always create iterators improves things a little bit:
 
e.g. things like
 
       ClassInfo classInfo = info.getClassInfo();
-      for (Annotation annotation : retrieval.getAnnotations())
+      Annotation[] anns = retrieval.getAnnotations();
+      for (int i = 0 ; i < anns.length ; i++)
       {
-         for(T plugin : getPlugins(ElementType.TYPE, annotation, null, annotationClasses))
+         for(T plugin : getPlugins(ElementType.TYPE, anns[i], null, annotationClasses))
          {
             if (isApplyPhase)
-               applyPlugin(plugin, annotation, classInfo, retrieval, handle);
+               applyPlugin(plugin, anns[i], classInfo, retrieval, handle);
             else
-               cleanPlugin(plugin, annotation, classInfo, retrieval, handle);
+               cleanPlugin(plugin, anns[i], classInfo, retrieval, handle);
          }
       }

 

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

To reply to this message visit the message page: http://community.jboss.org/message/527084#527084




More information about the jboss-user mailing list