Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21424 invoked from network); 2 Nov 2010 17:31:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2010 17:31:40 -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.161.42 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:61196] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/20-20401-AFA40DC4 for ; Tue, 02 Nov 2010 12:31:39 -0500 Received: by fxm10 with SMTP id 10so6478195fxm.29 for ; Tue, 02 Nov 2010 10:31:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.100.12 with SMTP id w12mr6683757fan.136.1288719071221; Tue, 02 Nov 2010 10:31:11 -0700 (PDT) Received: by 10.223.116.209 with HTTP; Tue, 2 Nov 2010 10:31:09 -0700 (PDT) In-Reply-To: <20101101224134.GG528@croustillant.local> References: <20101101224134.GG528@croustillant.local> Date: Tue, 2 Nov 2010 10:31:09 -0700 Message-ID: To: Etienne Kneuss Cc: Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] PHP 5.4: Rewriting of the parser into Lemon From: ilia@prohost.org (Ilia Alshanetsky) We should probably stick with the bison parser for now, at least until the lemon matches the speed of the existing solution. On Mon, Nov 1, 2010 at 3:41 PM, Etienne Kneuss wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >