Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62822 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51726 invoked from network); 4 Sep 2012 22:20:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2012 22:20:23 -0000 Authentication-Results: pb1.pair.com header.from=adamjonr@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adamjonr@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: adamjonr@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:50351] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/F7-12568-6AE76405 for ; Tue, 04 Sep 2012 18:20:23 -0400 Received: by iamm10 with SMTP id m10so11076876iam.29 for ; Tue, 04 Sep 2012 15:20:20 -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 :content-type; bh=gPqWHdUBWDV1f3cB910rrFZQmkXk4Nyz0rjBSdCGS8I=; b=xnaSP5eN2ulMXpJiotbsnU98Id0gah/LBttHExSB/yPdSUQ/Pvon8+fz1YjcCu3vTJ uEfzOjYOc2N6VJK9o++WuMuHI+wVkN77IgdE4IU3vcalfrog/yQBD3VajUyDMAvea/Hb m3MiLam3t9tcPOFqfCGYWhpJgiA3bYSyUdJy4Dj2Xt+DM65m+ubvya+rBqZzRraW98V+ nkdyOLLghNpi+t/JguH57aVXIm7MSJOYCuNqWac9AYujnrkr1Sx8P9nulbdo03bUc67V idRnfIwaD9XGApvr/hJqTi+G9mQ6mdj4xW5W4pbH1cpYbrDAF7tO1NewqLLf4tZ/SqHK obJw== MIME-Version: 1.0 Received: by 10.60.22.33 with SMTP id a1mr16032054oef.57.1346797220277; Tue, 04 Sep 2012 15:20:20 -0700 (PDT) Received: by 10.76.95.198 with HTTP; Tue, 4 Sep 2012 15:20:20 -0700 (PDT) In-Reply-To: <50467A92.5000401@ajf.me> References: <50467A92.5000401@ajf.me> Date: Tue, 4 Sep 2012 18:20:20 -0400 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Moving to an AST-based parsing/compilation process From: adamjonr@gmail.com (Adam Jon Richardson) On Tue, Sep 4, 2012 at 6:02 PM, Andrew Faulds wrote: > APC will make things faster, though, you're missing that. And optimisations, > which an AST would help, would make it even faster. Respectfully, I didn't miss that, and I alluded to that potential in my response (did you read all of my response.) As should be obvious from my post, if this approach lead to increased performance, I would be all for it. However, as Knuth has said, "It is often a mistake to make a priori judgments about what parts of a program really critical, since the universal experience of programmers who have been using measurement tools has been that their intuitive guesses fail." So, I'm cautious about the premise that this will/could lead to an overall improvement in performance compared to the current implementation, a caution that the RFC spoke to very clearly. My point is that, if there is an increase in the resources required, that is a really big deal. Adam