Re: array iteration vs. ArrayIterator
| From: | Greg Donald | Date: | Fri, 01 Feb 2008 17:11:08 +0000 |
| Subject: | Re: array iteration vs. ArrayIterator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268536@lists.php.net to get a copy of this message | ||
On Jan 31, 2008 10:09 PM, Nathan Nobbe <quickshiftin@gmail.com> wrote:
> http://nathan.moxune.com/arrayVsArrayIteratorReport.php
>
> at this point i must retract some of the statements i made during the
> conversation about ruby yesterday. it turns out, spl iteration is not
> twice as fast as standard array iteration, in fact it quite a bit slower!
> also, it takes up more memory, and lastly, whoever said that using the
> array-by-reference syntax saves memory is dead wrong ;)
Thanks for the benchmark.
Makes me feel better having previously dismissed SPL for "wordy,
java-like syntax" only.
--
Greg Donald
http://destiney.com/