Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69824 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48584 invoked from network); 24 Oct 2013 05:25:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 05:25:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:41955] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/7C-10840-B3FA8625 for ; Thu, 24 Oct 2013 01:25:15 -0400 Received: by mail-lb0-f176.google.com with SMTP id z5so1496059lbh.35 for ; Wed, 23 Oct 2013 22:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=S5VTussV6mdSf/VerS6R1UBjQl+3cYELLqqEMjajXxI=; b=qacJ20IfxHpgad++IUjtj9KxXlSEBhXuW/oR10A9o2L/dS02UCrGhDlTFODy4pLI/Z IKUJmNq3ZV8XE4pncIw0vi5cE2lQ8kKqBp35IRlUGBLyTyox0JR5XSwYnSgdZUJkYL5g h1lZ9pLFVbRD/vwhYmGgLm03mRDKpfSQdRn9zlkyEfB05NFWcbdzU8tkX2uIphuP8oJg IJexKhchI1fLaNwIKnjS+CntlL8J+YFQYJm9gHcmGv0HrGF8OUy4u4onf3TeUAsN2uBK ypVCdQ2CoZy2/LGI7qyugsP04hTmU6J/IihZWOZGRYlTo4kI2TpHe5fNEg+p1kh56mhU Y9cg== MIME-Version: 1.0 X-Received: by 10.152.9.36 with SMTP id w4mr607676laa.34.1382592312225; Wed, 23 Oct 2013 22:25:12 -0700 (PDT) Received: by 10.112.198.98 with HTTP; Wed, 23 Oct 2013 22:25:12 -0700 (PDT) In-Reply-To: <52686702.80107@oracle.com> References: <52686702.80107@oracle.com> Date: Thu, 24 Oct 2013 07:25:12 +0200 Message-ID: To: Christopher Jones , "Matt Ficken (Insight Global)" Cc: Dmitry Stogov , Julien Pauli , David Soria Parra , Stas Malyshev , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Improved performance of array_maerge() and func_get_args() From: pierre.php@gmail.com (Pierre Joye) hi, On Thu, Oct 24, 2013 at 2:17 AM, Christopher Jones wrote: > > > 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 tend to agree with Chris here, even for 5.5 :) However, Let me ask Matt to run our full tests suite against your patch, that may give us some numbers to discuss or confirm the safety of this patch. Matt? Can you run pftt, apps compat and perf tests using this patch pls? Cheers, -- Pierre @pierrejoye | http://www.libgd.org