Re: array iteration vs. ArrayIterator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 31, 2008 10:09 PM, Nathan Nobbe <quickshiftin@xxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux