ID:               24362
 Updated by:       [EMAIL PROTECTED]
 Reported By:      grandadmirale at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Performance problem
 Operating System: Linux
 PHP Version:      4.3.2
 New Comment:

Took: 0.066812992095947

Nothing wrong here, must be something wrong in your configuration, try
copying the php.ini-dist file from the distribution over your php.ini.




Previous Comments:
------------------------------------------------------------------------

[2003-06-27 12:39:14] 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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24362&edit=1

Reply via email to