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/[email protected] 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
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
