[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2001) Use fast optimized API for reading annotations in Seam and Seam RHDS Tools

Mikhail Grushinskiy (JIRA) jira-events at lists.jboss.org
Sat Sep 29 00:49:53 EDT 2007

Use fast optimized API for reading annotations in Seam and Seam RHDS Tools

                 Key: JBSEAM-2001
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2001
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: Core
            Reporter: Mikhail Grushinskiy

Use fast optimized API for reading annotations.

Seam is using calls to isAnnotationPresent() very frequently and it impacts overall performance and throughput

backport175 from


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

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list