[OpenLayers-Trac] Re: [OpenLayers] #3062: make moveTo more efficient

OpenLayers trac-20090302 at openlayers.org
Tue Feb 22 03:45:03 EST 2011


#3062: make moveTo more efficient
----------------------+-----------------------------------------------------
 Reporter:  ahocevar  |       Owner:              
     Type:  task      |      Status:  new         
 Priority:  minor     |   Milestone:  2.11 Release
Component:  Layer     |     Version:  2.10        
 Keywords:            |       State:              
----------------------+-----------------------------------------------------

Comment(by ahocevar):

 I am attaching a patch which reduces the number of function calls during
 moveTo, by taking advantage of cached properties and adding caching for
 additional properties. Before applying this patch, the list of most called
 functions looks like [https://skitch.com/ahocevar/rtdrr/web-inspector-
 http-localhost-ahocevar-projects-ol3-examples-fullscreen.html this], and
 after applying the patch like [https://skitch.com/ahocevar/rtdrm/web-
 inspector-http-localhost-ahocevar-projects-openlayers-examples-
 fullscreen.html that].

 All tests still pass, and examples continue to work.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3062#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list