[drupal-devel] menu memory usage

Chris Johnson chris at tinpixel.com
Mon Oct 24 16:30:38 UTC 2005

Karoly Negyesi wrote:
> Hi!
> Probably most of the devels have not noticed 
> http://drupal.org/node/34755  "when I enable all modules in core, the 
> menu array eats over 800K of RAM".  As we now have menu-otf which will 
> be badly abused and (almost) all nodes  will be put in the menu 
> hierarchy instead of stuff like About Us, FAQ etc,  we can look ahead 
> for situations where someone locks himself out of his  drupal cold after 
> a node submission because the menu tree will grow too  large. I know 
> this can not be solved for 4.7, it's too late, but let's  discuss it.

Yes, the menu system is memory intensive.  I noticed it using the Zend Studio 
profiler.  We are carrying a large array of data around from page to page, 
even though most of that array was not used on any given page.  I think this 
is a good area to look at for improved performance.


More information about the drupal-devel mailing list