Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69826 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54905 invoked from network); 24 Oct 2013 06:36:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 06:36:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.212.169 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:54462] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/9D-10840-6FFB8625 for ; Thu, 24 Oct 2013 02:36:38 -0400 Received: by mail-wi0-f169.google.com with SMTP id cb5so9369489wib.0 for ; Wed, 23 Oct 2013 23:36:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=p3GeX15leL6gypBSqO3Iuf7URrLspuKDlJd/43bWnUs=; b=f5tGi1pnZqPilo30wHQImEExcbSd4I1AheIsx4SQq7oCvydIWiyWQ+kfY9EzHXFeYx 3AlBhQyp0IczbJjeIJ4R04XqR5U0w8SGWSL67ThtTMVEjrN94Hm/nBBzCSHFTt37immG l1VgIJPPAjQ4zY8TjXgcFTeHVQjS37gM4GJ9gdUxsSzs69TzgY0B9D+S9N+WFWdXXXXR DfCP/i1MyJ2e4YBS/0j5P0Xsw1NclUXs7IFMqfyxSF4SSrAh96VCJzlx5qFKHK01E+LS aDMQ6lhCat4yR6DAFpaPHK8eHiGU0Bjtyuh3pqyssY2CWKft4gRP+ZTuXKgIRkQRuNys fO5A== X-Gm-Message-State: ALoCoQlwqt+BQJ9pEaW6njtBU47G9rkdnNt5t4knW+evNhfw6OSHxnFJxHX2R53mNNkGCmfiIHX74OXTyllS9FGAX5SN+UZTyTrIuqZ9W/sfMIFTOdi8MWJZ2Pg6pjjZD95qkZv7M5UU MIME-Version: 1.0 X-Received: by 10.180.73.239 with SMTP id o15mr702180wiv.36.1382596595194; Wed, 23 Oct 2013 23:36:35 -0700 (PDT) Received: by 10.227.214.144 with HTTP; Wed, 23 Oct 2013 23:36:35 -0700 (PDT) In-Reply-To: References: <52686702.80107@oracle.com> Date: Thu, 24 Oct 2013 10:36:35 +0400 Message-ID: To: Pierre Joye Cc: Christopher Jones , "Matt Ficken (Insight Global)" , Julien Pauli , David Soria Parra , Stas Malyshev , PHP Internals Content-Type: multipart/alternative; boundary=f46d0435c008ecaf1c04e976da22 Subject: Re: [PHP-DEV] Improved performance of array_maerge() and func_get_args() From: dmitry@zend.com (Dmitry Stogov) --f46d0435c008ecaf1c04e976da22 Content-Type: text/plain; charset=UTF-8 On Thu, Oct 24, 2013 at 9:25 AM, Pierre Joye wrote: > 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 :) > I don't care a lot about 5.4, but think it should be fixed in 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. > Of course we checked patch with PHPT tests and some real-life apps, but in case you have any other test suites it would be a great help to run them too. I would also look into strtr() implementation that became 6 times slower on typical usage in comparison to 5.3 after its "improvement" :( "11", "g"=>"22")); } } foo(); ?> Thanks. Dmitry. > > Matt? Can you run pftt, apps compat and perf tests using this patch pls? > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > --f46d0435c008ecaf1c04e976da22--