reset and count terribly slow on big arrays .. sizeof is fast
| From: | Stefano Bagnara | Date: | Wed, 19 Jan 2000 11:48:47 +0000 |
| Subject: | reset and count terribly slow on big arrays .. sizeof is fast | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9282@lists.php.net to get a copy of this message | ||
i got an array of 5000 arrays.
reset($bigarray) takes 90 seconds !!!!
count($bigarray) takes 6 seconds !!
sizeof($bigarray) takes less than a second
what does it mean?? i now changed all of my count in sizeof and my scripts
are really faster now.
- stefano bagnara (data sail s.r.l.) [bago.org]