Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69846 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33519 invoked from network); 24 Oct 2013 16:55:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 16:55:57 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracle.com designates 141.146.126.69 as permitted sender) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 141.146.126.69 aserp1040.oracle.com Received: from [141.146.126.69] ([141.146.126.69:36820] helo=aserp1040.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/1C-10840-D1159625 for ; Thu, 24 Oct 2013 12:55:57 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r9OGtrEw017966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Oct 2013 16:55:54 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9OGtqd3010478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Oct 2013 16:55:52 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r9OGtqh7010465; Thu, 24 Oct 2013 16:55:52 GMT Received: from hubby.local (/50.150.115.211) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Oct 2013 09:55:51 -0700 Message-ID: <52695117.5040100@oracle.com> Date: Thu, 24 Oct 2013 09:55:51 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Zeev Suraski CC: PHP Internals , Dmitry Stogov References: <52686702.80107@oracle.com> <6c41b1d2ddfa59832ec3422e14c12b10@mail.gmail.com> In-Reply-To: <6c41b1d2ddfa59832ec3422e14c12b10@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Subject: Re: [PHP-DEV] Improved performance of array_maerge() and func_get_args() From: christopher.jones@oracle.com (Christopher Jones) On 10/24/13 1:49 AM, Zeev Suraski wrote: >> -----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 > I've no issue with it going to PHP 5.5. Chris -- christopher.jones@oracle.com http://twitter.com/ghrd Free PHP & Oracle book: http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html