[antlr-interest] Re: [antlr-dev] we can do push/pop error stuff for 4%

Prashant Deva prashant.deva at gmail.com
Sun May 28 01:09:38 PDT 2006


>From what i read somewhere the Stack & Vector classes of Java are obsolete.
It is recommended to use ArrayList or LinkedList instead.

On 5/28/06, Terence Parr <parrt at cs.usfca.edu> wrote:
>
> Hi, so implemented my own stack and it's way faster.
>
> parse+lex 6261ms        using java.util.Stack
> parse+lex 3710ms        using no push/pop at all
> parse+lex 3860ms        using my own stack
>
> Given that lexing is like 1500ms, adding good error handling,
> recovery only costs us about 150ms or 4% cpu speed.  I'll leave in,
> but make it to use my stack.  Wow.  My stack costs 150ms vs 2551ms
> for java.util.Stack.  What the hell is it doing?  ick.
>
> Ter
>
> _______________________________________________
> antlr-dev mailing list
> antlr-dev at antlr.org
> http://www.antlr.org/mailman/listinfo/antlr-dev
>



-- 
Prashant Deva
Creator, ANTLR Studio
Founder, Placid Systems, www.placidsystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060528/d18c6ce3/attachment.html


More information about the antlr-interest mailing list