Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73914 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74036 invoked from network); 5 May 2014 19:33:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 May 2014 19:33:03 -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 74.125.82.178 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 74.125.82.178 mail-we0-f178.google.com Received: from [74.125.82.178] ([74.125.82.178:45853] helo=mail-we0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/82-44049-D67E7635 for ; Mon, 05 May 2014 15:33:02 -0400 Received: by mail-we0-f178.google.com with SMTP id u56so7204124wes.9 for ; Mon, 05 May 2014 12:32:58 -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=AdHJlNeYYkh8lh/F1oPKuFsE0P1HQWDu5j+RvFmJzuw=; b=DL4F90xG29juYpaiyUo6oi4RL+CpPho1px6H0O/qxBCkrNUdaC9DsR8akgndyn74kH M+jBzjeVvrjElRPRStNWiWwQyhRwf11CiUcnD99LaVHylPvd8vTBchOG4vA6BKY26HOX 4UBBK/sz4T2Dgobd7HWJrbgxKYjOWwcX4436I8uqyA+ScPUO7ddE6JV5+jcxqndkIWh2 1+WeriBM4N1+aM24fgQXULeeiQW/l4eCRhsQCdlbVgHdj27134hERgGEm5CNwBYdUMcv qzoIScyx2AnCnpjOfn29sn/FEY5a32+M/5yvyMiORWzzXQZXI/1y1nv+pZSxImXXCewK GXuA== X-Gm-Message-State: ALoCoQl5PauWCRb4NKuDiqV/wepLxsOMg3d+fOYla1hx1oips8I6WFAY4c/21+s7ddDbnVW5uxHC/qBXcHZ7h+HQr2vxM4bMakWns7zNQLRTLr8Zr9/gqXLfDwEOAxOCKQF4xBPuZzhZ MIME-Version: 1.0 X-Received: by 10.180.78.225 with SMTP id e1mr17462523wix.17.1399318378613; Mon, 05 May 2014 12:32:58 -0700 (PDT) Received: by 10.227.57.133 with HTTP; Mon, 5 May 2014 12:32:58 -0700 (PDT) In-Reply-To: References: <1CB4131A-13AA-4061-94F6-CA3B3EB1DB3E@ajf.me> <5FB10F5A-C78A-47C7-ABD1-A1CA1426B122@ajf.me> <0B48F9CB-D504-4274-8CE9-B330A4EDC4BD@zend.com> Date: Mon, 5 May 2014 23:32:58 +0400 Message-ID: To: Bob Weinand Cc: PHP Internals Content-Type: multipart/alternative; boundary=f46d043c0864e2ac1804f8ac3234 Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: dmitry@zend.com (Dmitry Stogov) --f46d043c0864e2ac1804f8ac3234 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Bob, Actually, our patches were orthogonal, resolving the same hack in different ways. Sorry, I had a lot of work, and missed your patch when you committed it. Then I just wasn't able to merge them in reasonable time. We will need to discuss it in more details and then reimplement on top of phpng or revert in master. The thing I don't like in the patch, that you converted every IS_CONSTANT_ARRAY into IS_CONSTANT_AST. With this approach all the constant arrays have to be evaluated at run-time= . However, I think about optimization when we won't copy constant arrays (without symbolic constants) from shared memory at all. I might be wrong, or misunderstand something in your patch, so we'll definitely need to talk, but now I would prefer to close the known problems first. Let's speak on next week. Thanks. Dmitry. On Mon, May 5, 2014 at 11:08 PM, Bob Weinand wrote: > Am 5.5.2014 um 16:31 schrieb Dmitry Stogov : > > I'm doing it right now: https://wiki.php.net/phpng-int > > Thanks. Dmitry. > > > On Mon, May 5, 2014 at 6:30 PM, Andrea Faulds wrote: > > Hmm. This is unrelated, but while you=E2=80=99re busy refactoring PHP, co= uld you > comment and document the bits you refactor a bit more? More documentation > can only be a good thing, and it=E2=80=99s something Zend is sorely lacki= ng. > > -- > Andrea Faulds > http://ajf.me/ > > > Nice work! > > Just wondering why > http://git.php.net/?p=3Dphp-src.git;a=3Dcommitdiff;h=3Df614fc68984b2d7fce= 3f275b8106955b5d910472was reverted in phpng? > > Is there any real reason to still use IS_CONSTANT_ARRAY? The AST variant > is much nicer, fixes a bug and removes the IS_CONSTANT_INDEX hack. > > Bob > > > > > --f46d043c0864e2ac1804f8ac3234--