ows layer getSRS should be cached because some layers can have many (Geoserver)
-------------------------------------------------------------------------------
Key: GEOT-959
URL: http://jira.codehaus.org/browse/GEOT-959
Project: GeoTools
Issue Type: Improvement
Components: ext wms
Affects Versions: 2.2.0
Reporter: Jesse Eichar
Assigned To: Richard Gould
Fix For: 2.2.1
Attachments: srs.patch
When rendering many WMS layers that come from Geoserver the getSRS method is
VERY slow because Geoserver can server up over 2000 CRSs. So consider a map
with 40 layers. getSRS is called at least 2 times per layer per pan in uDig
(trust me its true). Creating the sortedSet 40*2*(2000log(2000)) = 1,760,000
operations just to obtains the CRSs then they have to be searched for the CRS
that is being used... On 40 layer the searching takes nearly 20 seconds on a
Dual core chip.
So I'm attaching a patch that caches the CRSs in memory so they are only
obtained once. I have found a huge speed improvement doing this.
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel