Galen <mailto:[EMAIL PROTECTED]> on Friday, January 30, 2004 12:35 PM said:
> On huge arrays (hundreds of thousands of elements, three dimensions, > several megabytes) the performance impact is huge! The downside is > you'll probably have to use numeric keys instead of associative, but > for big arrays, numeric keys will probably also keep more memory free > and improve performance a bit. And here's another optimization (for the anal type). $yCnt = -1; $array_size = count($array); while(++$yCnt < $array_size) { // do your stuff } Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php