[antlr-interest] Performance problem with $text in ANTLR 3.1

Jim Idle jimi at temporal-wave.com
Tue Aug 21 18:55:22 PDT 2012


Move to 3.4. String template is much faster. However I am not sure about your view of the performance traits; but go to 3.4 and then you will be in a space to start analysis properly. At 3.1 no one can really help. 

Jim

On Aug 21, 2012, at 6:26 PM, Richard Knox <rich at dreambox.com> wrote:

> I recently upgraded an ANTLR based application from ANTLR 3.0.1 to ANTLR 3.1. Since doing this, our application has been running MUCH slower. I did some profiling with VisualVM and found that we were spending most of our time in TokenRewriteStream.getKindOfOps. We get there when we reference $text from a grammar with options output=template and rewrite=true. Are there known performance issues with this scenario in ANTRL 3.1? Would I get better perf with a later version? Any suggested work arounds? Thanks!
> 
> -rich
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list