Zend Optimizer Configuration Guide

xiaoxiao2021-03-06  57

Zend Optimizer Configuration Guide

Keyword PHP Zend Optimization

Somewhere

Zend Optimizer Configuration Guide

Current Author: Wang Meng (HeartIcy@163.com)

Creating Date: January 14, 2003

Revision: 1.1

Zend Optimizer is a free PHP optimization software opened by the PHP core engine "Zend" Creator Zend Technology Company. According to Zend

It is at least more than 30% of performance in some cases that use this software! So good free dinner is of course used, now we come

Talk about how to configure this software.

The installation of Zend Opt is a fool, the installation wizard will automatically modify the php.ini according to your choice to help you start this engine. the following

Let's introduce the configuration options for Zend Opt to help you maximize customization of reasonable configurations. The following is the configuration file I used, you can't see it.

Don't worry, you will fully understand this article.

[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 below:

Zend_optimizer.optimization_LEVEL "== Optimization, how many optimization processes are initiated here.

Zend_optimizer.Encoder_Loader == Whether it is allowed to process the PHP file encrypted by Zend Encoder.

Zend_extension_ts "== The directory where the optimizer is located.

Optimization process Zend_optimizer.optimization_LEVEL explanation

The most important part of this here, look carefully! Zend Opt has a total of 10 optimization processes, the better the more performance that is theoretically. of course,

Theory and actual never have a gap. The more the optimization process is turned on, the greater the performance consumption, and the 10 optimization of Zend Opt

The process is not the same, that is, the effect is not average. Zend's highest value (high mode) is 15, here 15 refers to opening 1-4

optimization process. Of course, many friends are not satisfied, after all, the highest opens only half of the optimization process even half of the total number. Various excellent

The corresponding digital code (value) of the process is as follows:

Do not use 0 <= If this is not as good, save point 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

What is the way to turn on an optimization process is controlled by these digital code (value) and as the parameter value of this parameter. as me

Zend_Optimizer.Optimization_Level = 1023 in the configuration file, the 1023 here is the optimization process 1 to the optimization process 10

The number of digital code (value) is added, indicating that all 10 optimization processes are turned on. HiGH mode value defined by Zend Company mentioned

Take 15, 15 indicate simultaneous open optimization processes 1-4.

Encryption code support Zend_Optimizer.Encoder_Loader explanation

For this parameter, I think most of the friends who have never seen Zend Opt FAQ documents don't know. This parameter is used to tell Zend Opt

Whether to support the code encrypted by Zend Encoder. By default, Zend Opt will support the encrypted code. If you don't use the encrypted code, I recommend you to close this option. This feature involves the process of unpacking the inverse code, which causes the system load to increase the weight. My friend has

After the development of the corresponding anti-compilation tool, it is expected to be launched after the Spring Festival.

This parameter is only two 0 off, 1 is turned on. Default is 1, the recommended is set to 0.

Module positioning zend_extension_ts No need to explain

This is the easiest place, the parameter is the installation path of the Zend Opt module on the hard disk.

Ok, this is over! I hope this article helps friends who like PHP. If there is any place where you don't understand, you can use email.

I contact - HeartCy@163.com. Previously I published "Opening a Freely ASP Expressway" by many websites of the domestic website.

And the author information is not moral reprint, I hope that the same situation should not appear in this article. IT writing community, a Liang surname, please respect, other

Don't loosen your home website, I also know what you have done!

* This document is followed by the US Free Software Foundation General Document License Agreement *

转载请注明原文地址:https://www.9cbs.com/read-111736.html

New Post(0)