Re: RE: Is PHP really run faster with Zend Optimizer installed?
| From: | Cynic | Date: | Tue, 19 Dec 2000 14:54:02 +0000 |
| Subject: | Re: RE: Is PHP really run faster with Zend Optimizer installed? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4534@lists.php.net to get a copy of this message | ||
Do you mean
mysql_connect ...
do ...
while
mysql_close
would be slower than
mysql_connect ...
mysql_close
do ...
while
??
Why?
As for the original question: Optimizer optimizes complex code,
so if your scripts consist of just a few connects and echoes,
it won't be any faster, in fact Optimizer may slow it down
indeed.
At 22:50 17.12. 2000, Jason Gan wrote the following:
--------------------------------------------------------------
>Zend Optimiser adds overhead for optimising the code.
>An obvious reply to your question is that since optimised code runs faster
>than non-optimised code,
>you will receive a speed benefit when there are loops in the code. For
>example, looping through an array or recordset.
>Be aware that database connections are slow, so avoid redundant loops when
>connected to the database.
>
>
>-----Original Message-----
>From: Adam Bear [mailto:bbbbear@china.com]
>Sent: Monday, 18 December 2000 2:50 AM
>To: php-windows@lists.php.net
>Subject: Is PHP really run faster with Zend Optimizer installed?
>
>
> I use Win32 PHP4.0.1 with Zend Optimizer installed, but it seems that
>my PHP pages don't show faster than whitout Zend Optimizer. in contrast,
>it seems take more time in page loading. How can I feel the another 40%
>to 80% faster accord with Zend says.
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
>For additional commands, e-mail: php-windows-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz