tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53895] New: Performance solution for ImplicitObjectELResolver
Date Wed, 19 Sep 2012 06:09:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53895

          Priority: P2
            Bug ID: 53895
          Assignee: dev@tomcat.apache.org
           Summary: Performance solution for ImplicitObjectELResolver
          Severity: normal
    Classification: Unclassified
          Reporter: xshao@ebay.com
          Hardware: PC
            Status: NEW
           Version: trunk
         Component: Jasper
           Product: Tomcat 7

Created attachment 29391
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29391&action=edit
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,
Integer>();

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

More detail please check out the attachment
"ImplicitObjectELResolverImpl.java".

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message