Skip to content
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

Improve performance by selectively importing parts of the stdlib #3

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

paulcadman
Copy link
Collaborator

This PR:

  • Updates the stdlib dependency to a stdlib ref that uses V2 Package (this can be updated to a tag once we've released a new version of the stdlib)
  • Updates the Package files to V2 Package
  • Uses a minimal Prelude file to avoid parsing/scoping the whole stdlib during the compiler pipeline.

This improves the compiler performance:

Before:

$ time juvix typecheck Example.juvix
Well done! It type checks
juvix typecheck Example.juvix  4.50s user 0.05s system 99% cpu 4.564 total

After:

$ time juvix typecheck Example.juvix
Well done! It type checks
juvix typecheck Example.juvix  1.94s user 0.04s system 98% cpu 1.993 total

@paulcadman paulcadman self-assigned this Dec 1, 2023
@paulcadman paulcadman merged commit 61c5404 into main Dec 1, 2023
1 check passed
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