Zend Optimizer configuration instructions in php.ini

  
                  

Zend Optimizer is a free PHP optimization software created by the PHP core engine "Zend" creator Zend Technologies. According to Zend, using this software can improve performance by at least 30% in some cases! Such a good free meal is of course used, now let's talk about how to configure this software. The Zend Optimizer installation is foolish, and the installation wizard will automatically modify php.ini to help you launch the engine based on your choice.

Let's introduce the configuration options of Zend Optimizer to help you maximize your custom configuration. Below is the configuration file I used, don't understand and don't worry, you will fully understand after reading this article.

[Zend] zend_Optimizer.Optimizerimization_level=1023 zend_Optimizer.encoder_loader=0 zend_extension_manager.optimizer_ts="D:\\PHP\\Zend\\lib\\Optimizer-3.3.0" zend_extension_ts="D:\\PHP\\Zend \\lib\\ZendExtensionManager.dll"

Introduce the meaning of this configuration file: zend_Optimizer.Optimizerimization_level← Optimization degree, here defines how many optimization processes are started; zend_Optimizer.encoder_loader ← Whether to allow processing by Zend Encoder PHP file; zend_extension_manager.optimizer_ts ← directory where the optimizer is located; zend_extension_ts ← The installation path of the Zend Oprimizer module on the hard disk.

Detailed explanation

Optimization process zend_Optimizer.Optimizerimization_level The most important part of this, look carefully! Zend Optimizer has a total of 10 optimization processes, and the more theoretically, the better the performance. Of course, there is always a gap between theory and practice. The more the optimization process is turned on, the more the performance is consumed. The 10 optimization processes of Zend Optimizer are not the same, that is, the effect is not average. The highest value defined by Zend (High mode) is 15, where 15 refers to the optimization process 1-4. Of course, many of my friends are not satisfied with this. After all, the highest optimization process only opens up to four optimization processes without even half of the total. The corresponding numeric code (value) of each optimization process is as follows: Do not use 0 <= If this is not as good as not, you can save some memory! Optimization Process 1 (PASS1) 1 Optimization Process 2 (PASS2) 2 Optimization Process 3 (PASS3) 4 Optimization Process 4 (PASS4) 8 Optimization Process 5 (PASS5) 16 Optimization Process 6 (PASS6) 32 Optimization Process 7 (PASS7) 64 Optimization Process 8 (PASS8) 128 Optimization Process 9 (PASS9) 256 Optimization Process 10 (PASS10) 512 The way in which the optimization process is initiated is controlled by the addition of these digital codes (values) and the parameter values ​​of this parameter. For example, in my configuration file, zend_Optimizer.Optimizerimization_level = 1023, where 1023 is the sum of all the digital codes (values) from optimization process 1 to optimization process 10, indicating that all 10 optimization processes are turned on. The High mode value defined by Zend just mentioned is 15, 15 means that the optimization process 1-4 is turned on at the same time.

Encrypted Code Support zend_Optimizer.encoder_loader For this parameter, I think most of the friends who haven't read the Zend Optimizer FAQ document don't know. This parameter is used to tell Zend Optimizer whether to support the code encrypted by Zend Encoder. By default Zend Optimizer will support encrypted code. I recommend that you turn this off if you are not using encrypted code. This function involves the process of unpacking the inverse code, which will cause the system load to increase. The value of this parameter is only two zeros off, 1 is on. The default is 1, and the recommended setting is 0.

Directory positioning zend_extension_manager.optimizer_ts No need to explain this is the easiest place, the parameter is the directory on the hard disk where the Zend Optimizer module is located

Module positioning zend_extension_ts No need to explain this is the easiest place, the parameters are The installation path of the Zend Optimizer module on the hard disk.

Copyright © Windows knowledge All Rights Reserved