[wp-trac] [WordPress Trac] #13307: 3.0 package size will cause memory limit problems

WordPress Trac wp-trac at lists.automattic.com
Thu May 13 16:12:07 UTC 2010


#13307: 3.0 package size will cause memory limit problems
-----------------------------+----------------------------------------------
 Reporter:  nacin            |       Owner:  nacin   
     Type:  defect (bug)     |      Status:  accepted
 Priority:  highest omg bbq  |   Milestone:  3.0     
Component:  General          |     Version:  3.0     
 Severity:  blocker          |    Keywords:          
-----------------------------+----------------------------------------------

Comment(by nacin):

 Replying to [comment:16 paulgregory]:
 > Whilst TwentyTen should be part of a fresh WP3 install, I am not at all
 convinced it should be included in the upgrade - which appears to be where
 the size problem lies.

 Aside from disagreeing with that point, we currently use the same package
 for both installs and upgrades. I don't think we should change that
 process.

 ----

 I have crunched some numbers. When reinstalling 2.9 on a shared host,
 memory usage immediately after download_url() peaked at 26.76 MB, and was
 at 19.56 MB just before the download_url() call. download_url() thus used
 7.2 MB of memory for the 2.5 MB package, or 2.88 MB of memory per MB of
 file.

 For an upgrade from 2.9 to 3.0 (sans CodePress etc.), memory usage was
 22.52 MB and 31.39 MB, respectively. That's 8.87 MB of memory for the 3.1
 MB download package, or 2.77 MB of memory per MB of file.

 When using the beta 2 build, memory usage was slightly higher, *just*
 enough to go over the default memory_limit threshold.

 So, I still think we need to do some pruning. A blog with a few more
 plugins than this one will probably make it over the edge in the current
 nightly. My thoughts:

  - Crush all PNGs.
  - Squeeze a few KB out of each JPG header image.
  - Remove theme-compat. Also prevents sites currently falling back to an
 i18n version of Kubrick from having things mucked up.

 And see where we're at. Also, consider removing the non-gzip tinymce.js.
 We should also backport [14491] anyway.

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


More information about the wp-trac mailing list