On Nov 22, 2007 4:41 AM, J-P Stacey &lt;<a href="mailto:jp.stacey@torchbox.com">jp.stacey@torchbox.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Greg Holsclaw wrote:<br>&gt; Drupal 6 will better optimize this issue by allowing module developers<br>&gt; to better include only the needed files through the menu system, thus<br>&gt; reducing overall memory usage without adding much overhead for opening
<br>&gt; more files. I am sure chx would give a better summary.<br><br></div>I was just thinking, what might be nice, then, is for there to be some<br>standard way of componentizing a module, and bringing in bits of it based on
<br>the URL. I take it from the mention of menu that that&#39;s what D6 does?<br></blockquote><div><br>Module splitting has happened as part of D6, mostly along the lines of admin<br>stuff and regular stuff. However, it can be further tuned to be more granular,
<br>but it has to be on a module by module basis. No general rule can work for all<br>possible permutations.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>If you introduce a precompiler to minimize the file hits in such a system as<br>Khalid mentions, would that nullify the effect you&#39;re after on the memory?<br>Do precompilers typically work within the allocated memory of the apache
<br>processes and hence bloat them just the same?<br></blockquote><div><br>Effectively, if you have a shared memory based op-code cache (e.g. APC), then<br>yes, the splitting becomes moot. Remember that not all people can have an 
<br>op-code cache (e.g. shared hosts), so there is benefit to those from splitting<br>the modules.<br><br>Op-code caches do save memory, since the code is loaded ONCE, parsed, <br>tokenized and stored as tokens. So, the memory footprint becomes less per
<br>Apache process.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Cheers,<br>J-P<br><font color="#888888">--<br>J-P Stacey
<br>+44 (0)1608 811870<br><a href="http://torchbox.com" target="_blank">http://torchbox.com</a><br></font></blockquote></div><br><br clear="all"><br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a><br>
<a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.