PHP 4.0 Bug #7113: count and pointers
| From: | wico at cnh dot nl | Date: | Tue, 10 Oct 2000 08:45:19 +0000 |
| Subject: | PHP 4.0 Bug #7113: count and pointers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34552@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0 Latest CVS (10/10/2000)
PHP Bug Type: Performance problem
Bug description: count and pointers
Hiya
$ADLIB_FILE is a file, size = 9mb
$ADLIB_DATA = file($ADLIB_FILE);
$ADLIB_COUNT = count($ADLIB_DATA);
echo time() - $test . " seconden<BR>\n\n";
die();
takes 17 secs
$ADLIB_DATA = file($ADLIB_FILE);
$ADLIB_COUNT = count(&$ADLIB_DATA);
echo time() - $test . " seconden<BR>\n\n";
die();
this takes 27 secs?
shouldn't this be faster the the first one?
Greetz,
Wico
--
Edit Bug report at: http://bugs.php.net/?id=7113&edit=1