News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Terry Chay's Blog:
Autoloading and Lazy Loading
April 27, 2009 @ 11:14:26

In this recent post to his blog Terry Chay points out one way he (and Tagged) used to help prevent things like "unknown class" errors in their code - lazy loading.

It's not that Andrei is wrong in his admonition. Far from it! For reasons that I don't quite care to know, there are caching and lookup optimizations that APC cannot do when it has to switch context to run __autoload.

They did see a performance boost from the code rewrite it took to make this happen but, since not everyone can take the time to optimize their code like this, he also suggests another way (as written up by Brian Shire). It uses two settings for APC in your php.ini file and the latest versions of PHP 5.3 & APC along with this patch to make them work.

0 comments voice your opinion now!
autoload lazy load apc cache performance increase


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: 6 PHP Performance Tips for Producing Highly Optimized Code

7PHP.com: PHP Interview With Vito Chin Lead Maintainer Of Gmagick Extension For PHP

Ed Finkler's Blog: What Matt Mullenweg doesn't know about PHP5, and how it hurts him and his users

Ilia Alshanetsky\'s Blog: Frankfurt Conference

Harrie Verveer's Blog: Benchmarking Xdebug


Community Events





Don't see your event here?
Let us know!


developer language community install unittest release laravel podcast threedevsandamaybe testing code list framework series opinion interview symfony2 introduction refactor configure

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework