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

Generate error messages lazily #413

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Conversation

marcauberer
Copy link
Member

@marcauberer marcauberer commented Jan 4, 2024

  • Generate error messages lazily. This improves compile time a lot, due to the fact that until now, for each ASTNode the error message was generated in advance (test run in CI from 1min 21s -> 44s). Furthermore, this should reduce the memory footprint on the heap (43MB -> 30MB).
  • Fix memory leak due to non-virtual ASTNode destructor

@marcauberer marcauberer added the improvement Improvement of an existing feature label Jan 4, 2024
@marcauberer marcauberer added this to the 0.19.0 milestone Jan 4, 2024
@marcauberer marcauberer self-assigned this Jan 4, 2024
@marcauberer marcauberer force-pushed the feature/generate-error-msgs-lazily branch from f9647a3 to ec63d06 Compare January 5, 2024 00:23
@marcauberer marcauberer force-pushed the feature/generate-error-msgs-lazily branch from ec63d06 to 5d24ab1 Compare January 5, 2024 00:44
@marcauberer marcauberer marked this pull request as ready for review January 5, 2024 00:51
@marcauberer marcauberer requested a review from a team as a code owner January 5, 2024 00:51
@marcauberer marcauberer merged commit 8f68840 into main Jan 5, 2024
4 checks passed
@marcauberer marcauberer deleted the feature/generate-error-msgs-lazily branch January 5, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement of an existing feature size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant