RE: [PHP-DEV] Improved performance of array_maerge() and func_get_args()

From: Date: Thu, 24 Oct 2013 08:49:50 +0000
Subject: RE: [PHP-DEV] Improved performance of array_maerge() and func_get_args()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-69836@lists.php.net to get a copy of this message
> -----Original Message----- > From: Christopher Jones [mailto:christopher.jones@oracle.com] > Sent: Thursday, October 24, 2013 3:17 AM > To: Dmitry Stogov; Julien Pauli; David Soria Parra; Stas Malyshev; PHP > Internals > Subject: Re: [PHP-DEV] Improved performance of array_maerge() and > func_get_args() > > > > On 10/23/2013 05:36 AM, Dmitry Stogov wrote: > > Hi, > > > > I'm proposing two simple patches that eliminate a lot of useless zval > > copying. > > For example they remove only about 800 calls to zend_hash_copy() (25%) > > on each request to wordpress-3.6.0 home page and make it 2-4% faster. > > > > It's not a questions about master branch, but I think it is also safe > > to commit them into PHP-5.4 and PHP-5.5. > > > > Any objections? > > > > https://gist.github.com/dstogov/7117623 > > > > https://gist.github.com/dstogov/7117649 > > > > Thanks. Dmitry. > > > > I'd prefer PHP 5.4 was kept stable. > > Last time I suggested keeping PHP 5.4 stable [1], it wasn't, and the > result was > a performance regression [2]. I think the two are very different - this isn't some brand new complex algorithm, but a very localized optimization that provides net gains in some cases, with no real risk to other cases. As far as I understand our release rules, as long as we break no APIs and no ABIs - we can put it into presently shipping versions, as long as we're confident it won't introduce regressions (which is true for any bugfix). That said, I'm fine with us only putting it into 5.5 and not 5.4 to give people a bit more motivation to upgrade; It just doesn't make sense to sit on it for a whole year, when the risk associated with it isn't that higher than many other fixes we routinely introduce into bugfix releases all the time... Zeev

« previous php.internals (#69836) next »