From: Don S. <do...@se...> - 2003-10-17 05:25:13
|
On Fri, Oct 17, 2003 at 12:15:49AM -0500, Eloi George wrote: > I'm still having trouble understanding why we'd need a runtime.php in=20 > addition to the index.php. Either way a file will still get called up. = =20 > In certain of my modules, the index.php code contains some if-else=20 > statements that check $GLOBALS['module'] to see which module has=20 > dominance and act accordingly. How does offloading that code to a=20 > different file give us performance benefits? Is it just that both would= =20 > end up being smaller files? I believe that when the module's index.php is called, then all the session objects for that module are instantiated. This creates memory overhead that might not be needed if the module isn't in the fore. Although now that I think about it, I would have to instantiate my manager anyway to know how to display the blocks. Hmm. Don. |