Re: Includes eating up my time [SOLVED]

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

 



David,

Thank you for responding.

__autoload
... which basically only loads classes when they are required.

Yes, this is exactly what I needed. Not only was I already on PHP5, but fortunately I had also already been building my classes so that it was one class per file, as __autoload requires.

So this was possibly the easiest and most effective change I've ever implemented. And the results were impressive. The Zend profiler reported that I went from 500 to 800 milliseconds per page request down to 40 to 60 milliseconds. Occasional database connections raised the time now and again, but I think I have a handle on that.

Thank you for pointing that out to me. Just the right solution.

--
Dave M G
Ubuntu Feisty 7.04
Kernel 2.6.20-16-386

--
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