|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-06-27 12:39 UTC] grandadmirale at yahoo dot com
Description:
------------
When using large ammounts of html (printing all at the same time or not) there is a major slowdown while php increases the buffer to allow for more html to be outputted. This is not a bug specific to my software as you can see in example, it should NOT take 1 second to execute phpinfo() when my entire script can (when not using large ammounts of html) execute in 0.05 seconds... if it hits those large ammounts though, the buffer goes up as well as the time, sometimes all the way up to 1 or 2 seconds which is rediculous. IF output_buffering is set high enough in php.ini it runs perfectly fine in the time it should, but since this is not changeable via script it becomes a major problem for scripts that need to output large ammounts of data jumping to multiple seconds of execution time when it should only be a portion of a second.
Reproduce code:
---------------
<?php
function getmicrotime()
{
$time = explode(' ',microtime());
return ((float)$time[0] + (float)$time[1]);
}
$timeStart = getmicrotime();
phpinfo();
print (getmicrotime() - $timeStart);
?>
Expected result:
----------------
It to execute in much under 1 second.
Actual result:
--------------
It executes in anywhere from 0.8 seconds to over 1 second.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 18:00:01 2025 UTC |
Does the server's have "session.use_trans_sid" enabled? (check with e.g. 'echo ini_get("session.use_trans_sid");' or from phpinfo() output)