[antlr-interest] case optimization

karl wettin kalle at snigel.net
Wed Feb 15 01:17:47 PST 2006


A sequence of characters seems to be translated by ANTLR to Java as a  
long case statement.

Would it not be faster to check (min =< char <= max)? Is there some  
JVM optimization I'm not aware of?

-- 
karl


More information about the antlr-interest mailing list