我在服务器上使天平和泽斯德最佳化器成为可能,我已经读过有关情况。
zlib.output_compression
指令。 在我的服务器中,是否在改变这一指令方面有点?
我在服务器上使天平和泽斯德最佳化器成为可能,我已经读过有关情况。
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”、
您为加快PHP代码所做的唯一最有效的事情是:opcode cache 。
Zend Bestizer+就是一例。 较老的泽德优化器(没有“+”)是代码优化器,而不是密码,如果你不使用密码,它实际上会减缓购买力平价编码。
在你这样做之后,就做了大量艰苦的工作来测试瓶颈(正如其他人提到的那样)。 你们需要认真调整你的法典,以缓解瓶颈。 大多数业绩专家说,业绩问题是由于应用结构不完善而不是单行的。
你需要多次展示的内容也是改善业绩的共同解决办法。 但是,决定什么内容和多长时间,是你们需要测试、试验和判断的另一个领域。
认为这种瓶颈可能根本不属于你的购买力平价法。 可是,你的数据库有正确的索引:
你的瓶颈也经常出现在客户身上。 即便您的购买力平价代码在服务器上快速运行,该网页在浏览器中可能装载效率不高,造成对业绩不佳的看法。 IMHO、所有网络设计师和开发商应当使Steve Souders books和>/blogs要求阅读。 这还涉及你询问的校准配置和客户业绩计量工具,例如、YSlow和
Learn profiling.
Then optimize bottlenecks.
产出压缩是前进的道路。 Set the compression levels to 1,因为它给出了最大储蓄/CPU间接费用比率。 1-9级的缺省等级为6级,由于某些额外特质的减慢,可能效率低下。
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 ...
<?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 = ...
I found this script online that creates a thumbnail out of a image but the thumbnail image is created with poor quality how can I improve the quality of the image. And is there a better way to create ...
如何确认来自正确来源的数字。
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 ...
I wonder there is a way to post a message to a facebook business page with cURL? thanks
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? 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 ...