Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69836 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81627 invoked from network); 24 Oct 2013 08:49:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 08:49:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.212.43 cause and error) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.212.43 mail-vb0-f43.google.com Received: from [209.85.212.43] ([209.85.212.43:36086] helo=mail-vb0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/F2-10840-13FD8625 for ; Thu, 24 Oct 2013 04:49:53 -0400 Received: by mail-vb0-f43.google.com with SMTP id g10so1087283vbg.2 for ; Thu, 24 Oct 2013 01:49:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=8dM5keoo6nBjspVqZcDlqaKeA0wzkuu6a1BZuUtKYFQ=; b=acIJHOunZPBgkVYTTV7FP89uCD0iRmRm6Eqh3xsGN+5aqt4sCJqY8x0s2a5nMaAsk5 7GkW//ravO21V2FKMy82N32xGBVikTy+7/Tvd7vjR1mIZQiasib7qQaZXUZwegE91Y4Y sAvlpE7AcxB0BgJvojTtvd6icXaG/CEN46PjPR2p7PuV2t8pDOwchr9YvEsdp2JhgDvl YfzxPL+UxAX10E0WACzeBXkH6r0XosxXYOXWDUhfaUDRn5NWh9Uu65SnQKyCNDSFhaWs Pg86Dg6wqnciW4msoaAujee04Vp2fSCzNIone10F8/05heWQGE2gRL1K7FcXDDfBetmQ bKqg== X-Gm-Message-State: ALoCoQmJt/FeSoO+FfgY4zE+/MBzysgQ+s0fVFWKovDM3DEfW8juQLM0QOtdGNqTcFxrmIWJr0ji3XgfGUDz85X/BHjlmDpgfCNTd03efsQi2PRA0+9A/lfPV6a27M+A5COiLr0xQod1 X-Received: by 10.221.21.133 with SMTP id qs5mr853695vcb.28.1382604591138; Thu, 24 Oct 2013 01:49:51 -0700 (PDT) References: <52686702.80107@oracle.com> In-Reply-To: <52686702.80107@oracle.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 thread-index: AQHbq93X02rcPT8yYLkPZ9piWVutRAIVpgXHmdklkQA= Date: Thu, 24 Oct 2013 11:49:50 +0300 Message-ID: <6c41b1d2ddfa59832ec3422e14c12b10@mail.gmail.com> To: Christopher Jones Cc: PHP Internals , Dmitry Stogov Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] Improved performance of array_maerge() and func_get_args() From: zeev@zend.com (Zeev Suraski) > -----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