Re: Structure of PHP files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote:

<snip>

> Not that I disagree with your methodology at this time, but you could
> have just made that single big file, include all those little files and
> still had a single load statement in each of your consumer source files.
> With compile caches the burden of loading all that code at startup is
> rather negligible :)

I've heard this before, and I don't understand why people say this. If
you have a 150k file you load before displaying a page, you've still
occupied the CPU with the task of loading a 150k file. What happens to
it afterward (compiling, compressing, caching, whatever) is another
issue. You've still loaded 150k of code. The question is whether you
actually need to load 150k of code from the start. If not, why waste the
resources?

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux