This one time, at band camp, Brian Moon <bri...@dealnews.com> wrote:

> I would agree except that doing lots of work on arrays in user space 
> consumes a lot of memory because of the number of opcodes used when 
> working on removing/adding things to the array.

This is exactly the scenario for which SPL Iterators were created

> We created an extension for Phorum to do our array tree sorting for 
> those users that had large threads of messages (1000+).  We found that 
> PHP would quickly consume a memory limit of 128MB and use tons of CPU 
> when working in user space to simply reorder an array.
Were you using SPL Iterators?

Kevin

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to