Re: Proposal: array_flatten function

From: Date: Sat, 27 Dec 2008 15:11:33 +0000
Subject: Re: Proposal: array_flatten function
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-42387@lists.php.net to get a copy of this message
On 12/27/08 2:10 AM, Kevin Waterson wrote:
The last thing that is needed, is more array functions..
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. 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. So, in that case, doing the work in a good C function will beat out user space work on arrays. -- Brian Moon Senior Web Engineer ------------------------------ When you care enough to spend the very least. http://dealnews.com/

« previous php.internals (#42387) next »