On 2005/03/19, at 3:41, Alexander Valyalkin wrote:
I've posted patch last summer http://www.zend.com/zend/week/pat/pat5.txt
which imporves performance of implode() function in PHP4, but nobody doesn't
commit it yet. Can anybody explain the reason?
Because convert_to_string_ex() modifies the content of every element that is not of string type.
<?php $arrays = array(array(), array(), array()); var_dump(implode('', $arrays)); var_dump($arrays); ?>
We already have an optimisation in the 5.x branches. I think it is appliable to the 4.3 branch.
Moriyoshi
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php