|
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]
|