Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69463 invoked from network); 7 Jun 2009 01:29:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2009 01:29:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.212 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.217.212 mail-gx0-f212.google.com Received: from [209.85.217.212] ([209.85.217.212:46891] helo=mail-gx0-f212.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/E7-30300-7E71B2A4 for ; Sat, 06 Jun 2009 21:29:12 -0400 Received: by gxk8 with SMTP id 8so1519009gxk.23 for ; Sat, 06 Jun 2009 18:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=4xeCzypi8APkHa4Ptc/VDvfAyE+uJLGixTRi6a5Lk+A=; b=ftGfylbtHjBCpEM0DnnN5TOP61eOQleO2n4vUwX84W2UCyKtW5taJqEGVUvJoUtqLE YOWjzXYvaFkR9+gk5/zgzKBhbl2mRr4n9YvrxR4BBeW1OalPc6JK70IJbPmSldKimVuu tknLWJJ6eCdwD+pYoRNoqOMLQLO3U5FOD9GB4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=SQilaosL5htEq7hAIIhfc6UUuoSc3qF3DtaMzwO99QEA6ip8VB9jOPCHR0Yi4bbN26 lDEGCuXOpdS8bd/+gXS8PD4eZ0ZkcZ92xue+x15GBXjQ9Je8/9WQfWHCshPN7gmolnz6 q2bg5IpcFoIZ3tqIQaC14BaiebYELpmH4ANdg= MIME-Version: 1.0 Received: by 10.231.18.140 with SMTP id w12mr1356737iba.55.1244338148465; Sat, 06 Jun 2009 18:29:08 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Jun 2009 02:28:48 +0100 Message-ID: To: Nuno Lopes Cc: Graham Kelly , PHP Internals , Brian Shire Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RE: Optimizer discussion From: paul.biggar@gmail.com (Paul Biggar) 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. > About runkit & friends, I wouldn't worr much about them. If you're running > them problably you also don't care about optimizations. If you want to be > able to optimize something, you need to remove as many freedom degrees as > you can.. This is probably true of runkit. However, I would be careful what you remove for extra freedom. There is very likely PHP code out there that relies (possibly by accident) on some edge cases. > P.S.: I'll try to meet with Paul in PLDI (in a week) and chat about these > kinds of things. Is anyone else comming that wants to join the discussion? You should probably mention this is in Dublin. Some of the IBM Toyko researches who work on (or maybe close to) Project Zero will be there, and might have interesting ideas. They have a paper on PHP memory usage. Paul -- Paul Biggar paul.biggar@gmail.com