[OpenLayers-Trac] Re: [OpenLayers] #2899: Remove overhead from OpenLayers.Class

OpenLayers trac-20090302 at openlayers.org
Fri Oct 22 17:10:23 EDT 2010


#2899: Remove overhead from OpenLayers.Class
------------------------------+---------------------------------------------
  Reporter:  ahocevar         |       Owner:  tschaub     
      Type:  feature          |      Status:  closed      
  Priority:  minor            |   Milestone:  2.11 Release
 Component:  BaseTypes.Class  |     Version:  2.10        
Resolution:  fixed            |    Keywords:              
     State:  Complete         |  
------------------------------+---------------------------------------------

Comment(by erilem):

 Defining sub-classes with {{{OpenLayers.Class}}} is also much slower than
 when relying directly on {{{OpenLayers.inherit}}} (~10 times):

 {{{
 --- Type Definition ---
 [Base Classes] OpenLayers.Class 66.45
 [Base Classes] Pure JavaScript 4.2
 [Sub-classes] OpenLayers.Class 277.25
 [Sub-classes] Pure JavaScript 30.4
 }}}

 ([attachment:perf-type-definition.html]).

 But, yes, I still need to find out and show what it means in terms of
 loading/parsing {{{OpenLayers.js}}}.

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


More information about the Trac mailing list