Use fast optimized API for reading annotations.
Seam is using calls to isAnnotationPresent() very frequently and it impacts overall performance and throughput
provides API for reading annotations faster than JDK5.
(They claim in http://fisheye.codehaus.org/browse/backport175/backport175/src/main/org/codehaus/backport175/reader/bytecode/AnnotationReader.java
as much as 5 times faster)
// Implementation notes:
// Parsing and annotation creation is made in two steps
// 1. The bytecode is parsed and the annotation content is put in elements,
// which are stored for later processing
// 2. Upon annotation access the elements are processed and a dynamic proxy
// for the annotation is created and cached.
// This gives much better performance than reflective access of Java 5
// annotations (reflective access is around 5 times slower)
Provide optimizations in Seam for faster annotation reading. Apart from Seam application performance it also can help Seam tools (in RHDS),
as well as application startup time.
This behavior can be made optional similarly to hibernate's hibernate.jdbc.use_refection_optimizer