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/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php