Re: PHP 5.4: Rewriting of the parser into Lemon
| From: | Ilia Alshanetsky | Date: | Tue, 02 Nov 2010 17:31:09 +0000 |
| Subject: | Re: PHP 5.4: Rewriting of the parser into Lemon | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50081@lists.php.net to get a copy of this message | ||
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 <colder@php.net> 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
>
>