Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56686 invoked from network); 1 Nov 2010 22:42:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Nov 2010 22:42:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=etienne@immomigsa.ch; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=colder@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain immomigsa.ch from 80.93.157.15 cause and error) X-PHP-List-Original-Sender: etienne@immomigsa.ch X-Host-Fingerprint: 80.93.157.15 outmail28.go.net.mt Received: from [80.93.157.15] ([80.93.157.15:18943] helo=outmail28.go.net.mt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/AF-10621-6324FCC4 for ; Mon, 01 Nov 2010 17:41:59 -0500 Received: from [172.20.1.71] (helo=fender71.go.net.mt) by outmail28.go.net.mt with esmtp (Exim 4.67) (envelope-from ) id 1PD34d-0006oM-3H; Mon, 01 Nov 2010 23:41:55 +0100 Received: from [217.22.190.142] (helo=croustillant.local) by fender71.go.net.mt with esmtp (Exim 4.67) (envelope-from ) id 1PD34X-00059H-RG; Mon, 01 Nov 2010 23:41:55 +0100 Received: by croustillant.local (Postfix, from userid 501) id 153A218E5F2C; Mon, 1 Nov 2010 23:41:35 +0100 (CET) Date: Mon, 1 Nov 2010 23:41:34 +0100 To: Derick Rethans Cc: PHP Developers Mailing List Message-ID: <20101101224134.GG528@croustillant.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [PHP-DEV] PHP 5.4: Rewriting of the parser into Lemon From: colder@php.net (Etienne Kneuss) On Nov 01 15:33:59, Derick Rethans wrote: > Hi! > > Work has been done on rewriting the PHP parser to Lemon in a specific > branch: http://svn.php.net/viewvc/php/php-src/branches/LEMON/ > > Right now, the Lemon parser is not actually faster than the current > bison parser, so I would suggest not to put this in PHP 5.4 until it > performs at least as well as the current parser. > > Are there any possibilities for optimisation so far? I'd make the guess that it is slower due to the rule decomposition that we had to do to match bison's "mid-rules" syntax. We could surely optimize the decomposition but it would require a lot of rewrite in zend_compile.c, which is quite tricky to do. > > cheers, > Derick > > -- > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Etienne Kneuss http://www.colder.ch