output_buffering
| From: | James Drabb | Date: | Sun, 23 Jun 2002 14:09:27 +0000 |
| Subject: | output_buffering | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103464@lists.php.net to get a copy of this message | ||
I was running some speed tests on a page that returns 1000 records from
a db and spits them into a table. I have output_buffering Off in my
php.ini file because of the statement below:
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files
by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On',
as
; a value for this directive (ex., output_buffering=4096).
output_buffering = Off
However the page takes 7 seconds to load with output_buffering = Off
and 1 second with output_buffering = On! What is up with that? Have most
of you found output buffering faster?
Jim Drabb
--
-------------------------------------------------------------
Never ask a geek why, just nod your head and slowly back away
-------------------------------------------------------------
James Drabb JR
Programmer Analyst
JDrabb@cfl.rr.com