[antlr-interest] Bounding the token stream in the C backend
Christopher L Conway
cconway at cs.nyu.edu
Thu Mar 4 10:53:23 PST 2010
On Wed, Mar 3, 2010 at 6:58 PM, Jim Idle <jimi at temporal-wave.com> wrote:
>> I'm giving the running time for the whole parsing process, including
>> semantic actions. We've previously measured that about 50% of the time
>> was spent in ANTLR code, so this represents probably an 80-90% speedup
>> on pure parsing.
>
> Still doesn't seem to be quite right to be honest, you should be seeing it much faster than that. Or do you mean that it now only takes 10 to 20% of the time to parse than it used to?
Yes, that's what I mean. I am very, very pleased with the improvement. :-)
> You need to define the macro as per the examples in the downloadable examples tar ball:
>
> @lexer::header
> {
> #define ANTLR3_INLINE_INPUT_ASCII
> }
Ah... I missed this. This makes another 5-10% improvement! Wow.
Thanks,
Chris
More information about the antlr-interest
mailing list