Re: [PHP4BETA] reset and count terribly slow on big arrays .. sizeof is fast

From: Date: Wed, 19 Jan 2000 15:56:40 +0000
Subject: Re: [PHP4BETA] reset and count terribly slow on big arrays .. sizeof is fast
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9289@lists.php.net to get a copy of this message
Let's try and go one at at time and solve the reset() problem first. Are you sure you're using PHP 4? Can you please post a reproducing script for the reset() problem? As short as possible please. Andi On Wed, 19 Jan 2000, Stefano Bagnara wrote: > 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] > > > >

« previous php.version4 (#9289) next »