GeoServer extensions needlessly allocates Integer objects for int comparison
----------------------------------------------------------------------------
Key: GEOS-2217
URL: http://jira.codehaus.org/browse/GEOS-2217
Project: GeoServer
Issue Type: Improvement
Reporter: Andrea Aime
Assignee: Andrea Aime
Priority: Trivial
Fix For: 1.7.0-RC3
GeoServer extensions compares the priority of the extensions like this:
return new Integer(p1).compareTo(p2);
whilst
return p1 - p2;
does the same and avoids two memory allocations (which multiplied by the number of extensions being compared and the number of requests per second geoserver is handling might rise up to a significant amount).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira