shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig McClanahan (JIRA)" <>
Subject [jira] Created: (SHALE-448) Improve performance of startup scanning
Date Wed, 23 May 2007 19:04:42 GMT
Improve performance of startup scanning

                 Key: SHALE-448
             Project: Shale
          Issue Type: Improvement
          Components: Tiger
    Affects Versions: 1.0.4, 1.1.0-SNAPSHOT
            Reporter: Craig McClanahan
            Priority: Minor

At startup time, the Tiger extensions currently scan classes in JAR files to analyze their
annotations.  To reduce overhead, two heuristics (only scan JARs that have a META-INF/faces-config.xml,
and/or limit the package names that should be scanned) are applied to reduce the number of
classes actually scanned.

It turns out that there is a variant of Class.forName():

    public Class<?> forName(String name, boolean initialize, ClassLoader loader)
      throws ClassNotFoundException

that can load the metadata about a class without running the static initializers yet.  It
should be possible to use this variant to further reduce the startup overhead.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message