Re: implode() speedup in PHP4
| From: | Moriyoshi Koizumi | Date: | Fri, 18 Mar 2005 21:12:16 +0000 |
| Subject: | Re: implode() speedup in PHP4 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15492@lists.php.net to get a copy of this message | ||
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