473,549 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difference between cached PHP and Zend optimizer

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
1 2389
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3074
by: Munja | last post by:
I have PHP script running complex query and then calculating data for different conditions from received result set. Actually, it's doing the same as if I would make several queries with different conditions on same data in DB. Calculating data in PHP instead of running several queries (each query has joins on several tables with several...
0
1725
by: Michal Zajaczkowski | last post by:
Hello I have installed php 4.3.3 and Zend Optimizer2.1.0b on debian woody. I added to my php.ini lines: zend_optimizer.optimization_level=7 zend_extension="/usr/local/Zend/lib/ZendOptimizer.so" (there is library for php 4.3.x) but phpinf() still don't display "with Zend Optimizer ..." info What is the problem? Anyone has a sugestion? ...
0
1457
by: anti-bozak | last post by:
is zend optimizer any good?
1
4868
by: Toni | last post by:
I've tried to reinstall the zend environment and debugger on my new computer. I almost succeeded but when I try to debug or profile a webpage by clicking on the buttons on the toolbars I get the following message in my browser: Failed to connect to host '192.168.2.102'. Failed to connect to host '192.168.126.1'. Failed to connect to host...
0
1453
by: cantelow | last post by:
Greetings. I am getting some Arithmetic Exception exit signal messages in my apache logs and intermittent lost pages in a photopost app, dating from an upgrade to php 4.3.10, and I'm investigating whether this could have anything to do with the Zend incompatability that is mentioned in red on php.net for the 4.3.10 download. php 4.3.10...
3
2239
by: nntp | last post by:
What is ZEND. Why it has anything to do with programming PHP?
1
2141
by: Xristos Nikolopoulos | last post by:
Hello, I have made an application that needs to upload files, the application is deployed in several folders, and each folder has its php files. The problem is, I have in the folder I want to upload the php files that do the job and a php.ini file to change limits.
7
3102
by: archimonde2 | last post by:
What are pros any cons to use eaccelerator and zend optimizer on php5-mod with apache2.2 ?? Does accelerators work immediately after install on all php files? When both are in use which accelerate speed execution of php files? How can i find that??
3
2359
by: Daniel Kraft | last post by:
Hi all, I'm currently running into problems with Zend Optimized PHP code; or more clear, a partner of mine asked me to adapt a script he bought which is encoded this way. Does anyone know if this can be done, or if there are any projects trying to develop a free decoder/decompiler? I know this might be a bit off-topic here, but I...
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.