You are here: Re: How to remove blanks at runtime?? « PHP Programming Language « IT news, forums, messages
Re: How to remove blanks at runtime??

Posted by Jerry Stuckle on 10/09/06 13:21

Peter Fox wrote:
> Following on from 's message. . .
>
>> Thanks.
>>
>> Is there any performance impact or server overloading if I use output
>> buffering??
>>
>> Does it take more resources (cpu, ram)??
>
> No there is absolutely no overhead when buffering and processing the
> buffer. Why should that be? It's not as if you're using RAM or CPU
> cycles.
>
>
>
> If you're generating the output dynamically then clear out those spaces
> in the source code.
>
> If you are just serving HTML then tidy up the original HTML once.
>
>

Actually, there is a slight performance hit, but it isn't much.

PHP will by default buffer the output, But this is not a huge buffer(I
forget the size),and when it fills, the output is sent to the web server.

If you use output buffering, all the output is buffered until you send
the data on. This will generally require more RAM for the larger
buffer, and more CPU cycles to process the buffer.

But it's not a great amount unless you have large pages.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this 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

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