[wp-trac] Re: [WordPress Trac] #5651: Optimize get_plugin_data

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 12 23:50:53 GMT 2008


#5651: Optimize get_plugin_data
----------------------------------------------+-----------------------------
 Reporter:  filosofo                          |        Owner:  anonymous
     Type:  defect                            |       Status:  new      
 Priority:  normal                            |    Milestone:  2.5      
Component:  General                           |      Version:  2.5      
 Severity:  normal                            |   Resolution:           
 Keywords:  has-patch get_plugin_data memory  |  
----------------------------------------------+-----------------------------
Comment (by darkdragon):

 I'm sure, DD32, that what you said might just be the case. Which is why I
 pull in some padding of 512 bytes. I believe it should be enough for
 version info, since it isn't part of the check.

 I think that the version info should be required, but it isn't up to me to
 make that decision.

 Well, the "padding" is really a hack and I'm not too happy with it, but I
 think pulling in 2.5 kB is better than 120KB. It might be better to pull
 in increments of 2kB if a lot of problems start popping up. That might be
 a good idea as a 2kB file is not going to cause the memory from
 exhausting.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5651#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list