On Fri, 2004-05-07 at 12:00, Richard Davey wrote:
> Hello Ryan,
> 
> Friday, May 7, 2004, 4:51:45 PM, you wrote:
> 
> RA> Nearly all programs can be written in *one* very large .php file but just
> RA> thinking of going back in to make changes 3 months down the road would be a
> RA> nightmare.
> 
> I was just looking at this the other day - I had a local site running
> here and profiling the index page took around 800ms with 30 include
> files. Out of interest I dumped a load of those files into one and
> re-profiled it (11 includes rather than 300) and the load time dropped
> dramatically (300ms). I know there are other factors at play here
> (Windows vs. Unix, cached vs. needing to seek across the hard drive
> every time), but the difference still surprised me. Of course I could
> never cope with all of those files "as one", but I will definitely
> keep them split up locally and combine into one when published live.

I think there was a recent discussion on the internals list that
mentioned how the realpath lookup for files is fairly slow and that it
can have an impact :/

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Reply via email to