Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65602 invoked from network); 7 Jun 2009 13:54:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2009 13:54:27 -0000 Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 209.85.221.184 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.221.184 mail-qy0-f184.google.com Received: from [209.85.221.184] ([209.85.221.184:51716] helo=mail-qy0-f184.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/E8-20836-196CB2A4 for ; Sun, 07 Jun 2009 09:54:26 -0400 Received: by qyk14 with SMTP id 14so1854177qyk.29 for ; Sun, 07 Jun 2009 06:54:23 -0700 (PDT) Received: by 10.224.28.81 with SMTP id l17mr5679223qac.76.1244382863211; Sun, 07 Jun 2009 06:54:23 -0700 (PDT) Received: from ?192.168.1.132? (CPE0018f8c0ee69-CM000f9f7d6664.cpe.net.cable.rogers.com [99.238.11.214]) by mx.google.com with ESMTPS id 7sm4149650qwb.36.2009.06.07.06.54.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Jun 2009 06:54:22 -0700 (PDT) Cc: Nuno Lopes , Graham Kelly , PHP Internals , Brian Shire Message-ID: <14328FE7-7058-405F-A14C-E68FBB2280AD@prohost.org> To: Paul Biggar In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Sun, 7 Jun 2009 09:54:18 -0400 References: X-Mailer: Apple Mail (2.935.3) Subject: Re: [PHP-DEV] RE: Optimizer discussion From: ilia@prohost.org (Ilia Alshanetsky) On 6-Jun-09, at 9:28 PM, Paul Biggar wrote: > On Fri, Jun 5, 2009 at 11:23 PM, Nuno Lopes wrote: >> I'm happy there's some interest in a PHP optimizer :) >> I agree with Paul that PECL's optimizer duplicates way too much >> stuff from >> the Zend engine, which is not practic nor maintainable. (compare >> for example >> with the simple constant folder I implemented some years ago: >> http://web.ist.utl.pt/nuno.lopes/zend_constant_folding.txt). > > This is certainly a much better demonstration of how the optimizer > should work. The existing optimizer already does constant folding... Ilia Alshanetsky