[antlr-interest] Another parsing question

Randall R Schulz rschulz at sonic.net
Wed Aug 6 14:32:54 PDT 2008


On Wednesday 06 August 2008 14:00, Loring Craymer wrote:
> Yes, but that has performance problems since a collection range tests
> look like if (foo > 1 && foo < 10 )
>        <do something>
>    else if (foo == 13)
>        <do something else>
>    else ...
>
> and that can get very slow when you have to do all of the tests to
> find out that a character is not in the set.

Prove it.

Anyway, why not just use a regular hashed set? The Trove4J library has 
native collections, too.


> ...
>
> --Loring


Randall Schulz


More information about the antlr-interest mailing list