#35482 [Fbk->Opn]: Bad performance of filesystem functions on Windows XP Professional
| From: | tobias-bender at web dot de | Date: | Wed, 30 Nov 2005 23:03:13 +0000 |
| Subject: | #35482 [Fbk->Opn]: Bad performance of filesystem functions on Windows XP Professional | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89536@lists.php.net to get a copy of this message | ||
ID: 35482
User updated by: tobias-bender at web dot de
-Summary: Bad performance of filesystem functions
Reported By: tobias-bender at web dot de
-Status: Feedback
+Status: Open
Bug Type: Filesystem function related
Operating System: Windows XP Professional
PHP Version: 5.1.1
New Comment:
I think this has to be analysed on a Windows platform
Previous Comments:
------------------------------------------------------------------------
[2005-11-30 10:30:11] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Can't reproduce on Linux.
------------------------------------------------------------------------
[2005-11-30 01:25:57] tobias-bender at web dot de
Description:
------------
All filesystem functions got much slower with PHP 5.x.
With short relative paths PHP 4 is about twice as fast as PHP 5. PHP 5
is nearly 10 times slower when using absolute paths compared to PHP 4.
Reproduce code:
---------------
function getMicrotime(){
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
$iTime = getMicrotime();
$rHandle = opendir('C:/Apache2/htdocs/phpXplorer/test/vollvoll');
while (false !== ($sName = readdir($rHandle))) {
if (is_dir('C:/Apache2/htdocs/phpXplorer/test/vollvoll/' . $sName)){
echo 'C:/Apache2/htdocs/phpXplorer/test/vollvoll/' . $sName .
'<br/>';
}
}
echo getMicrotime() - $iTime;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35482&edit=1