Posted By:
Ric_Klaren
Posted On:
Wednesday, May 9, 2001 02:22 AM
I have some incomplete patches to speed up some aspects of the support library. Though not the time atm to incorporate/port those.
Speed ups can be gotten by keeping things:
- LL(1).
- Don't use a ANTLR lexer but flex or similar
(I'm not 100% sure if this helps, but if my hunch is true than you might gain a lot there).
- Don't use semantic checks or limit them to rules near the end of your parse tree. Every semantic action introduces backtracking/extra recursion in the rule itself and in the rules below.
- Turn of AST generation.
There is no C codegenerator. But making one shouldn't be that hard (if you have time).
If you are willing to share the results of your profiling work I'd be much obliged btw.