Re: Proposal: array_flatten function
| From: | Kevin Waterson | Date: | Sun, 28 Dec 2008 00:08:08 +0000 |
| Subject: | Re: Proposal: array_flatten function | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42388@lists.php.net to get a copy of this message | ||
This one time, at band camp, Brian Moon <brianm@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