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

Small compiler speedups, Add lua tests #2923

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

Vurv78
Copy link
Contributor

@Vurv78 Vurv78 commented Dec 3, 2023

Now lua files can be added to the e2 test suite for the sake of testing the compiler's speed and for more complex tests.

Speed Changes

  • Removed debug assertions in compiler as test suite should cover it just fine.
  • Separated function overloads in tokenizer and parser that would lead to extra needless computations
  • Inlined certain function calls in parser
  • Localized string library calls in tokenizer

Think the most impactful change is the compiler one, but I haven't tested the passes individually anyway.

@Vurv78 Vurv78 merged commit 4edf127 into wiremod:master Dec 7, 2023
1 check failed
@Vurv78 Vurv78 deleted the faster-compiler branch December 7, 2023 03:00
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.

2 participants