Hello,

On 06/12/2003 10:16 PM, Steve Yates wrote:
Starting with a working site (FreeBSD 4.7, Apache 1.3.27) using PHP 4.3.0 and the latest Zend Optimizer, I upraded to PHP 4.3.2. Afterwards, phpinfo
() did not show the Optimizer as loaded. Reinstalling Optimizer did not change this, nor did uninstalling and reinstalling Optimizer. There were no errors during the Optimizer install, and everything looks like it's correct to me...the two lines are in php.ini, and they point to the right ZendOptimizer.so file. There is only one php.ini on the system. Any hints?

I think this is a simple version mismatch or maybe you are using also another extension that is not compatible with Zend Optimizer.


Anyway, on a completely unrelated subject, you may want to know that using an optimizer extension alone may make your scripts run slower.

What happens is that if you use just the optimizer, PHP will compiler and optimize your scripts. Often the speedup gains of optimizing are nortworth the extra time and CPU the optimizer takes to scan and redo your PHP compiled code in memory. This means that often, not using any optimizer is better than using one.

To avoid that problem you should use an optimizing extension always in conjunction with a compatible caching extension, as it will save the optimizer results in shared memory and it won't spend anymore time recompiling and optimizing the same scripts in every access.

You need to use a compatible cache extension, probably Zend Cache. If you can't afford a commercial cache extension, using a free caching extension is much faster than using just Zend Optimizer.

You may want to try Turck that is an Open Source extension that does simultaneously: optimizing, code caching, content caching and even encoding. The performance practically matches Zend commercial products.

You may learn all about it here:

http://www.turcksoft.com/en/e_mmc.htm


--


Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/


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



Reply via email to