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

Optimize Slice#<=> and #== with reference check #15234

Merged

Conversation

straight-shoota
Copy link
Member

Adds early returns to Slice#<=> and Slice#== if the point to the same memory location.

@straight-shoota straight-shoota added this to the 1.15.0 milestone Nov 28, 2024
@straight-shoota straight-shoota merged commit 9a5cc23 into crystal-lang:master Dec 2, 2024
68 of 69 checks passed
@straight-shoota straight-shoota deleted the perf/slice-compare branch December 2, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants