|
Posted by Andy Hassall on 10/10/06 18:54
On 9 Oct 2006 17:06:32 -0700, Hermann.Richter@gmail.com wrote:
>My pages are not too big. But I'm expecting to receive a lot amount of
>visits so I'm very concerned about performance because a slight
>overhead in processing a page could have a big impact on the server
>when serving hundreds of requests per second.
>
>What do you think??
>Could there be a noticeable impact in server's performance on a very
>visited site??
Perhaps it's worth stepping back a little and asking what is your goal here -
why do you want to remove the whitespace?
If the main goal is to reduce the amount of data transferred from server to
client, you may be better off using output compression (e.g. setting
zlib.output_compression to On or a value for the buffer size). Not only will
this compress the whitespace down, it'll transparently compress all the other
text as well. Reductions of 10:1 for the amount of data transferred are not
uncommon. And as this is done in a compiled library then it will likely fare
well compared with doing string processing in PHP to remove whitespace.
But perhaps you have another reason, so it may be useful to hear it.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|