Reply to Re: How to remove blanks at runtime??

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация