Skip to content

Replace LARK with a hand-written parser. #34

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jesnie
Copy link
Member

@jesnie jesnie commented Oct 25, 2022

Replace LARK with a hand-written parser:

  • This is faster and reduces the overhead of check_shapes somewhat.
  • This removes the external dependency on Lark

Examples of before and after overhead:
overhead
from check_shapes.

Honestly I'm not 100% sure this is an improvement. I was hoping for a larger improvement in speed.

* Fixed bug where code actually was run with `check_shapes` which shouldn't have been.
* Removed `check_shapes` imports in the `without` code.
* Store the `with` and `without` temporary files at separate paths.
* Refactored some statistics code into a separate module.
* Print estimated overhead when running `run_benchmark`.
* Added plot of absolute overhead.
@jesnie jesnie force-pushed the jesper/handwritten_parser branch from 56bdeed to 0281cf0 Compare October 25, 2022 09:08
* This is faster and reduces the overhead of `check_shapes` somewhat.
* This removes an external dependency of `check_shapes`.
@jesnie jesnie force-pushed the jesper/handwritten_parser branch from 0281cf0 to 96614d4 Compare October 25, 2022 09:13
@jesnie jesnie requested a review from sc336 October 25, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant