English 中文(简体)
我的服务器中是否有改道校正的热点?
原标题:Is there any caveats with turning zlib.output_compression in my server?

我在服务器上使天平和泽斯德最佳化器成为可能,我已经读过有关情况。

zlib.output_compression

指令。 在我的服务器中,是否在改变这一指令方面有点?

最佳回答

First you should determine what the bottleneck is (or will probably be under load).
With turning on (transparent) compression you trade cpu resources for data (network) throughput. So, you have to think about: Is my data (highly) compressible? Is the time it takes to transfer the data to the client a bottleneck? How much cpu resources can I spent for the compression? What other resources does my script use (e.g. memory consumption, database connections, ...)? Which resource will become the bottleneck under (heavy) load? When, where and for how long will one instance of the script block another instance? And so on and on.

http://developer.yahoo.com/yslow/help/"rel=“noretinger”>,简介者,如:http://xdebug.org” rel=“noretinger”、

问题回答

Learn profiling.
Then optimize bottlenecks.

产出压缩是前进的道路。 Set the compression levels to 1,因为它给出了最大储蓄/CPU间接费用比率。 1-9级的缺省等级为6级,由于某些额外特质的减慢,可能效率低下。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签