-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster Parser #12
Comments
Currently, parse tree construction appears to run linearly or better in the length of the input, whereas recognition appears to run in quadratic time. |
Leo parsing modification https://www.sciencedirect.com/science/article/pii/030439759190180A. Try this before looking at the full MARPA implementation above. It is probably worth looking at an online algorithm for chunked parse tree generation and formatting before making the switch to one of these parsers. |
Building the project with the |
At the time of writing, the entirety of the Spring Framework (~7000 files and ~1,300,000 lines) can be formatted in just over 51 seconds. |
Investigate where slow-ups occur in the Earley parser, if optimations cannot be made, look for a faster parser.
The text was updated successfully, but these errors were encountered: