Zend Optimizer Configuration Guide

Source: Internet
Author: User
Tags numeric zend

Zend Optimizer is a free PHP optimization software run by the PHP core engine "Zend" founder Zend technology company. According to Zend company revealed that the use of this software in some cases can at least improve performance of more than 30%! This is a good free meal, of course, and now we're going to talk about how to configure the software.

Zend opt installation is a fool, the installation Wizard will automatically modify your choice to PHP.ini to help you start the engine. Here's a description of the Zend OPT configuration option to help you maximize your customized configuration. Below is my use of the configuration file, do not understand and do not worry, after reading this article you will fully understand.

[Zend]
zend_optimizer.optimization_level=1023
zend_optimizer.encoder_loader=0
zend_extension_ts="C:\Program Files\Zend\lib\ZendOptimizer.dll"

Now let's introduce the meaning of this configuration file above:

zend_optimizer.optimization_level 《== 优化程度,这里定义启动多少个优化过程。
zend_optimizer.encoder_loader 《== 是否允许处理由Zend Encoder加密的PHP文件。
zend_extension_ts 《== 优化器所在目录。

Optimization Process Zend_optimizer.optimization_level Detailed explanation

Here is the most important part, look carefully! Zend opt has a total of 10 optimization processes, the more theoretically the more performance the better. Of course, there is always a gap between theory and practice. The more the optimization process is opened, the more the performance consumption is, and the 10 optimization processes of Zend opt are not the same, which means that the effect is not average. The highest value (high mode) defined by the Zend Company is 15, where 15 refers to the process of opening the 1-4 optimization. Of course, many friends are not satisfied with this, after all, the highest is only open 4 optimization process even half of the total did not. The corresponding numeric codes (values) for each optimization process are as follows:

Do not use 0 <= if this is not installed, but also save some memory say!

优化过程1(PASS1) 1
优化过程2(PASS2) 2
优化过程3(PASS3) 4
优化过程4(PASS4) 8
优化过程5(PASS5) 16
优化过程6(PASS6) 32
优化过程7(PASS7) 64
优化过程8(PASS8) 128
优化过程9(PASS9) 256
优化过程10(PASS10) 512

The way in which the optimization process is opened is controlled by the addition of these numeric codes (values) and the parameter values that are used as the parameters. As in my configuration file, Zend_optimizer.optimization_level = 1023, where 1023 is the sum of the optimization process 1 to the optimization process 10 all numeric codes (values), which indicates that all 10 optimization processes are turned on. The Zend Company-defined high mode value, as mentioned earlier, is 15,15 to open the optimization process at the same time 1-4.

Cryptographic code support Zend_optimizer.encoder_loader detailed explanation

For this parameter, I think most of the friends who have not seen the Zend Opt FAQ document do not know. This parameter is used to tell Zend opt whether to support code that has been Zend Encoder encrypted. By default, Zend Opt will support encrypted code. If you do not use the encrypted code I recommend that you turn off this option. This function is involved in the process of unpack and reverse code, which will result in heavier load of the system. My friend has developed a corresponding counter-compiling tool, which is expected to be launched after the Spring Festival.

The value of this parameter is only two 0 off, and 1 is open. The default is 1, and the recommended setting is 0.

Module positioning ZEND_EXTENSION_TS without explanation

This is the simplest place, the parameter is the Zend opt module on the hard disk installation path.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.