Re: [PHP] Re: PHP Performance and System Load

2007-07-20 Thread Sancar Saran
Hi, I had lots of loop in my code. My gain was %4 to %6 and I say "may gain another %10". Of course your millage was different than me Regards Sancar On Saturday 21 July 2007 01:03:45 Richard Lynch wrote: > On Fri, July 20, 2007 4:16 am, Colin Guthrie wrote: > > Sancar Saran wrote: > >> Anoth

Re: [PHP] Re: PHP Performance and System Load

2007-07-20 Thread Richard Lynch
On Fri, July 20, 2007 4:16 am, Colin Guthrie wrote: > Sancar Saran wrote: >> Another simple performance tip. >> >> Most of for examples of php look like this >> for($x=0;$x> >> This is bad. In every cycle you call sizeof >> >> this was good >> $intSize = sizeof($arrSometing); >> for($x=0;$x<$intSiz

[PHP] Re: PHP Performance and System Load

2007-07-20 Thread Colin Guthrie
Sancar Saran wrote: > Another simple performance tip. > > Most of for examples of php look like this > for($x=0;$x > This is bad. In every cycle you call sizeof > > this was good > $intSize = sizeof($arrSometing); > for($x=0;$x<$intSize;$x++) > > if u use. > for($x=0;$x<$intSiz;++$x). You may g