[antlr-interest] Re: help with OutOfMemoryError
micheal_jor
open.zone at virgin.net
Thu Nov 13 09:42:44 PST 2003
--- In antlr-interest at yahoogroups.com, "John D. Mitchell"
> > I am trying to parse around 6000 java files placed under around 80
> > directories. I used the standard java parser that comes with the ANTLR
> > tool. It throws out of memory error after parsing around 1850
files. The
> > input to the parser is one top level directory.
>
> > Can you suggest as to where I can clean up some code to avoid
this? Or
> > any other solution.
>
> Are you sure that you're releasing resources after parsing each file
or is
> there some reason that you need to try to parse them all at once and
keep
> all of that stuff around?
Slightly OT but, I wonder if there are any figures for the "typical"
size of ANTLR ASTs as a ratio of the input source files. I am aware
that the figure would probably vary [wildy?] between grammars but it
will be useful nonetheless ;-)
Micheal
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list