Re: [PHP4BETA] reset and count terribly slow on big arrays .. sizeof is fast From: Andi Gutmans (andi <email protected>)
Date: 01/19/00

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]
>
>
>
>

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>