Open brucehsu opened 10 years ago
It seems like the parser performs poorly on nested blocks. Initial investigation shows it restarts from the last successful syntax rule upon failed rule.
Might be worthy to investigate goyacc and new lexer from sourcegraph. https://sourcegraph.com/blog/multi-language-lexer-and-scanner-for-go
Example:
which is significantly slower than following example: