Home Backend Development PHP Tutorial ZendOptimizer配置指南_PHP

ZendOptimizer配置指南_PHP

Jun 01, 2016 pm 12:35 PM
opt zend optimization turn on guide process Configuration

ZendOptimizer

当前作者:王猛 (HeartIcy@163.com)
创建日期:2003年1月14日
修订版本:1.1

Zend Optimizer是由PHP核心引擎“Zend”创建者Zend技术公司所开的免费PHP优化软件。据Zend公司
透露使用这个软件某些情况下至少可以提高性能30%以上!这么好的免费大餐当然要用,现在我们来
谈谈如何配置这套软件。

Zend Opt的安装是傻瓜化的,安装向导会自动根据你的选择来修改php.ini帮助你启动这个引擎。下面
我们来介绍下Zend Opt的配置选项,帮助你最大化自定义合理的配置。下边是我所用的配置文件,看不
懂也不要着急,看完本文你就会完全明白。

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

现在我们来介绍下上边这个配置文件的含义:
zend_optimizer.optimization_level 《== 优化程度,这里定义启动多少个优化过程。
zend_optimizer.encoder_loader 《== 是否允许处理由Zend Encoder加密的PHP文件?lt;br />zend_extension_ts 《== 优化器所在目录。

优化过程 zend_optimizer.optimization_level 详细解释

这里最为重点的部分,仔细看!Zend Opt总共有10个优化过程,从理论上说开的越多性能越好。当然,
理论和实际永远都存在着差距。优化过程开启的越多对性能消耗也相对也越大,Zend Opt的10个优化过
程并不相同也就是说效果不是平均的。Zend公司定义的最高值(High模式)为15,这里15指的是开启1-4号
优化过程。当然,很多朋友并不满足于此,毕竟最高也只开启4个优化过程连总数的一半都没有。各个优
化过程的对应的数字代码(值)如下:

       不使用      0   优化过程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

以何种方式开启优化过程是通过这些数字代码(值)相加所得的和作为此参数的参数值来控制的。如我
的配置文件中zend_optimizer.optimization_level = 1023 , 这里的1023是优化过程1到优化过程10全
部数字代码(值)相加得到的和,表示开启全部10个优化过程。刚才所提到的Zend公司定义的High模式值
为15,15表示同时开启优化过程1-4。

加密代码支持 zend_optimizer.encoder_loader 详细解释

对于这个参数,我想如果没有看过Zend Opt FAQ文档的朋友大多数并不知道。这个参数用来告诉Zend Opt
是否去支持被Zend Encoder加密过的代码。默认情况下Zend Opt将支持加密过的代码。如果不使用被加密
过的代码我推荐你关闭此选项。这个功能牵扯到解包反码的过程,会导致系统负荷的加重。我的朋友已经
开发完毕相应的反编译工具,预计春节之后推出。

这个参数的值只有两个 0 关闭, 1 开启。默认为1,推荐设置为0。

模块定位 zend_extension_ts 无需解释

这是最简单的地方,参数就是Zend Opt模块在硬盘上的安装路径。

好了,就此结束!希望这篇文章对喜欢PHP的朋友有所帮助。如果有任何不理解的地方可以通过电子邮件同
我联系 - HeartIcy@163.com 。之前我发表的《开辟一条自由ASP快车道》被国内多家网站抹煞版权声明
以及作者信息不道德转载,我希望同样的情况不要在这篇文章出现。IT写作社区某梁姓作者请自重,另外几
家网站也不要松口气,我也知道你做了些什么!

*本文档遵循美国自由软件基金会通用文档许可协议发布*

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Setting up Chinese with VSCode: The Complete Guide Setting up Chinese with VSCode: The Complete Guide Mar 25, 2024 am 11:18 AM

VSCode Setup in Chinese: A Complete Guide In software development, Visual Studio Code (VSCode for short) is a commonly used integrated development environment. For developers who use Chinese, setting VSCode to the Chinese interface can improve work efficiency. This article will provide you with a complete guide, detailing how to set VSCode to a Chinese interface and providing specific code examples. Step 1: Download and install the language pack. After opening VSCode, click on the left

Understand Linux Bashrc: functions, configuration and usage Understand Linux Bashrc: functions, configuration and usage Mar 20, 2024 pm 03:30 PM

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

Teach you how to enable dual WeChat functions on your Huawei phone! Teach you how to enable dual WeChat functions on your Huawei phone! Mar 22, 2024 pm 03:15 PM

In modern society, mobile phones have become an indispensable tool in people's lives. The functions of smart phones are becoming more and more powerful, meeting various needs of people's daily life, work and entertainment. For some users who need to use multiple WeChat accounts at the same time, it is particularly important to enable the dual WeChat function. This article will teach you how to enable dual WeChat functions on your Huawei phone, allowing you to easily manage multiple WeChat accounts. First of all, the EMUI system that comes with Huawei mobile phones already supports dual WeChat functions at the system level, so you only need to follow the following steps to set it up.

C++ program optimization: time complexity reduction techniques C++ program optimization: time complexity reduction techniques Jun 01, 2024 am 11:19 AM

Time complexity measures the execution time of an algorithm relative to the size of the input. Tips for reducing the time complexity of C++ programs include: choosing appropriate containers (such as vector, list) to optimize data storage and management. Utilize efficient algorithms such as quick sort to reduce computation time. Eliminate multiple operations to reduce double counting. Use conditional branches to avoid unnecessary calculations. Optimize linear search by using faster algorithms such as binary search.

Be the first to open the mission treasure house. The new version of 'World of Warships' is now open. Be the first to open the mission treasure house. The new version of 'World of Warships' is now open. Apr 17, 2024 pm 06:04 PM

Be the first to open the mission treasure house and plan the battle one step ahead. The 13.3 version of "World of Warships" is now open. Knowing all the important information about the new version of combat missions and combat types will help captains plan the overall battle and quickly obtain relevant rewards. In version 13.3, the asymmetric combat mode that captains have been waiting for returns. Captains need to control the warships against AI warships that are lower in level but more numerous. This mode is very suitable for team play. Up to 5 players can form a team to fight side by side. More tacit cooperation can help you defeat the opponent quickly. During patch 13.3, all captains will have the opportunity to collect the Somme Collection and obtain this Tier IX destroyer. The requirement for this task is also very simple, that is, win the game before the next version is released.

To help destroy B-series tanks, the 'Lancer Charge' event in 'World of Tanks' starts To help destroy B-series tanks, the 'Lancer Charge' event in 'World of Tanks' starts Apr 19, 2024 pm 04:22 PM

The new B-series self-propelled anti-tank gun R&D branch has just joined "World of Tanks". Its high-level members can shoot star-shaped APCR shells, which can cause devastating damage to close targets. In order to welcome the arrival of these unique tanks, "World of Tanks" will launch a special limited-time event "Lancer Charge" from 17:00 on April 19 to 17:00 on April 26. This event will open 2 sets of tasks. Complete these tasks and collect the White Eagle Token. The tokens can also be redeemed for rewards of your choice, and special packages containing tokens will also be available in the Armory and Special Offers Mall! ·During the entire event, the system will open exclusive missions for the new B-series self-propelled anti-tank guns. Each mission can be completed several times a day. After completing the mission, you can obtain White Eagle tokens and additional crew experience. Events are repaid every day.

How to optimize the startup items of WIN7 system How to optimize the startup items of WIN7 system Mar 26, 2024 pm 06:20 PM

1. Press the key combination (win key + R) on the desktop to open the run window, then enter [regedit] and press Enter to confirm. 2. After opening the Registry Editor, we click to expand [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer], and then see if there is a Serialize item in the directory. If not, we can right-click Explorer, create a new item, and name it Serialize. 3. Then click Serialize, then right-click the blank space in the right pane, create a new DWORD (32) bit value, and name it Star

Vivox100s parameter configuration revealed: How to optimize processor performance? Vivox100s parameter configuration revealed: How to optimize processor performance? Mar 24, 2024 am 10:27 AM

Vivox100s parameter configuration revealed: How to optimize processor performance? In today's era of rapid technological development, smartphones have become an indispensable part of our daily lives. As an important part of a smartphone, the performance optimization of the processor is directly related to the user experience of the mobile phone. As a high-profile smartphone, Vivox100s's parameter configuration has attracted much attention, especially the optimization of processor performance has attracted much attention from users. As the "brain" of the mobile phone, the processor directly affects the running speed of the mobile phone.

See all articles