Hello,
On 06/14/2004 10:23 PM, Nick Mudge wrote:
Does anybody know the performance difference between having your PHP code
cached and just running your code with the zend optimizer? Is there much
difference?
A lot. Using a caching extension alone is much better than just the
optimizer. The cache extension avoids the compilation step. In some
cases using the optimizer degrades the performance because the execution
speedup does not compensate the optimization overhead.
Ideally using both a compiler and an optimizer is the best combination
but beware that some optimizers have bug and make your code run
erroneously. So, it is probably safer to use just a cache as the speedup
is often more significant not to mention that it saves memory.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html