tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53895] New: Performance solution for ImplicitObjectELResolver
Date Wed, 19 Sep 2012 06:09:59 GMT

          Priority: P2
            Bug ID: 53895
           Summary: Performance solution for ImplicitObjectELResolver
          Severity: normal
    Classification: Unclassified
          Hardware: PC
            Status: NEW
           Version: trunk
         Component: Jasper
           Product: Tomcat 7

Created attachment 29391
New ImplicitObjectELResolverImpl

ImplicitObjectELResolver uses Arrays.binarySearch to check scope name.
 It isn't very efficient.

It can be improved by using a map to hold the scope to scopeIndex.
 Such as,

 private static final Map<String, Integer> scopeMap = new HashMap<String,

 static {
 for (int i = 0; i < SCOPE_NAMES.length; i++) { scopeMap.put(SCOPE_NAMES[i],
i); }

More detail please check out the attachment

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message