Skip to content

Commit 3f08e42

Browse files
committed
Minor performance improvement: Add faster variant of eat()
and a faster version of eatOptional(). eat() is called frequently when converting lexed tokens to values, and often with a single token type. Varargs and array counting would slow that down. validatiion/ParserPerformance sped up from 0.581 to 0.574 seconds (1%). (Added a loop to run on 100 files 10 times, divided by 10, took best times)
1 parent 77579df commit 3f08e42

File tree

1 file changed

+212
-179
lines changed

1 file changed

+212
-179
lines changed

0 commit comments

Comments
 (0)