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

From: Date: Wed, 19 Jan 2000 16:07:50 +0000
Subject: Re: [PHP4BETA] reset and count terribly slow on big arrays .. sizeofis fast
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9290@lists.php.net to get a copy of this message
I already spoken to Thies about this.. and i think it was a memory problem.. My apache's childs was growing to 100MB or more with the big array and so the system was swapping.. So, in this situation i went to the results given, with 90seconds for the reset.. If i don't fill my memory with apache's child it works fine.. I saw that once apache process grow to 100MB it never free memory and this is bad for me. Anyway, probably the problem is not php4. i'll do more test in next days. Thanx. - stefano bagnara (data sail s.r.l.) [bago.org] ----- Original Message ----- From: "Andi Gutmans" <andi@zend.com> To: "Stefano Bagnara" <bago@datasail.it> Cc: <php4beta@lists.php.net> Sent: Wednesday, January 19, 2000 4:56 PM Subject: Re: [PHP4BETA] reset and count terribly slow on big arrays .. sizeofis fast > 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@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > >

« previous php.version4 (#9290) next »