[antlr-interest] Size Limits?

Terence Parr parrt at cs.usfca.edu
Wed Jul 11 16:28:06 PDT 2007


On Jul 11, 2007, at 4:20 PM, Susan Jolly wrote:

> I decided to test how fast I could anticipate my new ANTLR v3 grammar
> running on real problems without factoring in output time.
>
> I created an internally generated String with over a million  
> characters and
> it ran so fast ( on a several years old 3 GHz Dell running Windows  
> XP) that
> I could barely time it!  However, when I tried to increase the size  
> of the
> String I (not surprisingly) eventually got a  
> java.lang.OutOfMemoryError.

Nice to hear!  How big did you make the java memory?  Use -Xmx300M or  
something to set max heap to 300 meg.

Ter


More information about the antlr-interest mailing list