https://issues.apache.org/bugzilla/show_bug.cgi?id=48551
Summary: StringCache: Use entrySet() rather than keySet() +
get()
Product: Tomcat 7
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24846)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24846)
Replace keySet() + get(key) with entrySet()
Using entrySet() to iterate over a map is faster than using keySet() followed
by get(key).
Sample patch attached.
There are quite a few other examples elsewhere in the Tomcat code.
I can provide patches for those if required.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]