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

Store str instead of String in ParseError #469

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

DaniPopes
Copy link
Contributor

Minor performance improvement for the parser. In repeat_until_end_paren the Err is constructed and discarded immediately after, which allocated a string unnecessarily.

@DaniPopes DaniPopes requested a review from a team as a code owner November 11, 2024 06:50
@DaniPopes DaniPopes requested review from saulshanabrook and removed request for a team November 11, 2024 06:50
Copy link

codspeed-hq bot commented Nov 11, 2024

CodSpeed Performance Report

Merging #469 will not alter performance

Comparing DaniPopes:parse-error-string (4031ed9) with main (2c8d947)

Summary

✅ 8 untouched benchmarks

@saulshanabrook saulshanabrook requested review from Alex-Fischman and removed request for saulshanabrook November 11, 2024 19:21
Copy link
Contributor

@Alex-Fischman Alex-Fischman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Alex-Fischman Alex-Fischman merged commit ca52ac1 into egraphs-good:main Nov 13, 2024
5 checks passed
@DaniPopes DaniPopes deleted the parse-error-string branch November 13, 2024 09:06
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.

3 participants