I'm using parseback in my project, but parsing is very slow due to many whitespaces.
In practice, there is no DSL does not have whitespace.
I have introduced a lexing phase before the PWD, the parsing speed became very fast.
Here are 3 patterns of benchmark results in my box.
I'm using parseback in my project, but parsing is very slow due to many whitespaces. In practice, there is no DSL does not have whitespace. I have introduced a lexing phase before the PWD, the parsing speed became very fast. Here are 3 patterns of benchmark results in my box.
no optimize
no optimize(add whitespace)
lexing optimize(add whitespace)
Lexing before PWD is as fast as non-whitespace input even if the input has whitespaces. I suggest you introduce a lexing phase before parse.