While working on PetitDelphi, we noticed significant performance
problems. As PetitDelphi copied the design of PetitJava, we found
the same root cause.
When creating a new java parser, a significant amount of time is spend
on initialization, especially the creation of parsers for keywords, separators and
operators. The introduction of a lexicon cache allows the tests to run
significantly faster. 2230 ms to 224ms the second time.
PetitJava-DiegoLont.115
Yuriy, can you merge?
Stephan