Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96588 invoked from network); 24 Oct 2013 11:55:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 11:55:46 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.220.172 mail-vc0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:63332] helo=mail-vc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/25-10840-1CA09625 for ; Thu, 24 Oct 2013 07:55:46 -0400 Received: by mail-vc0-f172.google.com with SMTP id ks9so1224943vcb.31 for ; Thu, 24 Oct 2013 04:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=ouL5+fDgU14wtKnbZ4LlItu7UR4CKNf87P6p9xH8LL8=; b=tooE13S7ztC+R4UrzyVnozcHdnTPi3VPr2ibkqr1aUYFdfayPWkLpMRgIHS+03SddK ol2WkS0Q9zO7ssLtW7qv0p0J6LjI/hcblR7qpOsZBE1OEdTsUh7MNQ/8k1/hq70TAyIo PXI1IGHgRf4Sba4hpPsMKQlZgxu4CIYVvBvKfQgwfuFAUip9nIJ4tQv+jaTXLeQNn94p NMub3CGYCf9BIaMi1ro97CLQZd7UUWSyDQSznsiuZnkGDyx+O3L16169jSS2tF+TtQ9E Gdd6awPoBNoEapphh2ZDd35tX2gOOY+od+BtxCO3FCFxjDjoDUZKKvVPE/20ObHaO3xS N2xA== X-Received: by 10.52.170.169 with SMTP id an9mr200724vdc.35.1382615743296; Thu, 24 Oct 2013 04:55:43 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.73.197 with HTTP; Thu, 24 Oct 2013 04:55:03 -0700 (PDT) In-Reply-To: <6c41b1d2ddfa59832ec3422e14c12b10@mail.gmail.com> References: <52686702.80107@oracle.com> <6c41b1d2ddfa59832ec3422e14c12b10@mail.gmail.com> Date: Thu, 24 Oct 2013 13:55:03 +0200 X-Google-Sender-Auth: 784LEt00HnOqguBJwV-nBwcrWVE Message-ID: To: Zeev Suraski Cc: Christopher Jones , PHP Internals , Dmitry Stogov Content-Type: multipart/alternative; boundary=047d7bacb41a3d7f0c04e97b5045 Subject: Re: [PHP-DEV] Improved performance of array_maerge() and func_get_args() From: jpauli@php.net (Julien Pauli) --047d7bacb41a3d7f0c04e97b5045 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 24, 2013 at 10: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... > > I agree. I see no objection not to merge a patch that's been proven to give positive results. If test suite still pass, and numbers show a real improvement, including on real life projects, then just go merging it. I did not follow carefully the strstr patch, so I cannot give advice about it. Feel free to merge it to 5.5 and master. Julien Pauli --047d7bacb41a3d7f0c04e97b5045--