https://issues.apache.org/bugzilla/show_bug.cgi?id=56940
Bug ID: 56940
Summary: Cache mechanism for "ConstantUtf8.java" doesn't have
any benefit
Product: Tomcat 7
Version: trunk
Hardware: PC
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31983
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31983&action=edit
patch
"org.apache.tomcat.util.bcel.classfile.ConstantUtf8.java" use a cache to
optimize the load for "ConstantUtf8".
In fact, the cache work as expected. Just new a instance directly works better.
By disabling the cache, the performance improved obviously.
The comparison for the cost is listed bellow, the result was get by running
test case "TestConstantUtf8.testConstantUtf8()".
=====lots of jar files=====
Use a Cache: 611ms
Without Cache: 458ms
=====few jar files=====
Use a cache: 92ms
Without Cache: 74ms
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]