Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69816 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7104 invoked from network); 23 Oct 2013 19:20:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2013 19:20:46 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.212.182 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:43588] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/C6-10840-D8128625 for ; Wed, 23 Oct 2013 15:20:46 -0400 Received: by mail-wi0-f182.google.com with SMTP id ez12so1429197wid.15 for ; Wed, 23 Oct 2013 12:20:43 -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=uXCp6+msvfU1bnhyM9ys3ugIcTdm1RdS5ZWeHBdui00=; b=JBuTIxbRKN0SHx9qQcS3i9yvMeM8HLP4c0AYygjxhIUbP4HPNpPDs6PBHMGwQgWsjH Kty0FLHndKD1vZMSfDZeogI8yv+dX6UzRN1MuDHV4hjrgytRdde24BDuG7tBhp6GUP8Y cr0oBexVLFfNiLKGXArETbBepP+VnmSRRL86RQHPU5ojsYvCnETIf+5S6a5nIqPprX2O Mo1y10d6yV5n5mt+Jo/GG7edlJaS6NnFv8wLRHY/VwW8HvmFPXWt2HOJFuX1WatH8yNd bz1kRFE0iTF0IsSPSJ1fBwlbrIKVQqDpWvJJEs2uS7PXVdTPmoEezLSMcS4QvN/653Vp h2Qw== X-Gm-Message-State: ALoCoQmItQup9/8Q87hFC5N5DwuKASiClPEX4ohhCg0RRQ9mt4Hc+F7TXU5JWAAT/1ex3bvOzeyUxkgLhy4f1beJiVamOIVtRbiybDaPPhm4QaV/dLKd4rB+NN+jKQNG42cZ94ti4epW MIME-Version: 1.0 X-Received: by 10.194.110.138 with SMTP id ia10mr3105975wjb.3.1382556043212; Wed, 23 Oct 2013 12:20:43 -0700 (PDT) Received: by 10.227.214.144 with HTTP; Wed, 23 Oct 2013 12:20:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Oct 2013 23:20:43 +0400 Message-ID: To: Levi Morrison Cc: Julien Pauli , David Soria Parra , Stas Malyshev , PHP Internals Content-Type: multipart/alternative; boundary=047d7bf10aa8d693be04e96d6932 Subject: Re: [PHP-DEV] Improved performance of array_maerge() and func_get_args() From: dmitry@zend.com (Dmitry Stogov) --047d7bf10aa8d693be04e96d6932 Content-Type: text/plain; charset=UTF-8 On Wed, Oct 23, 2013 at 6:21 PM, Levi Morrison wrote: > > 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. >> > > Sounds great. Thank you for looking into this. Just to clarify: the > wordpress improvements were from both patches, yes? > Yes, both patches together. > >> >> 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? >> > > I don't have an objection; I just want to reiterate that changing code can > introduce BC breaks and to be careful when backporting it. Just be careful. > Of course we checked them careful for possible BC breaks, but we may miss some special cases. Thanks. Dmitry. --047d7bf10aa8d693be04e96d6932--