By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

Difference between cached PHP and Zend optimizer

P: n/a
Hi,

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?

Nick
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.