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

Use top_set_bit to optimize hash(Real) #49986

Merged
merged 1 commit into from
May 29, 2023
Merged

Conversation

LilithHafner
Copy link
Member

This should not affect computed hash values (the num == 0 case is covered earlier), simplify generated code, and,
on my machine, this results in a 1.5x speedup for hashing 128-bit integers according to @btime hash(x) setup=(x=rand(Int128)).

@LilithHafner LilithHafner merged commit 18d02c2 into master May 29, 2023
@LilithHafner LilithHafner deleted the LilithHafner-patch-2 branch May 29, 2023 23:23
@aviatesk
Copy link
Member

CI seems to be broken by this PR. Please revert this.

aviatesk added a commit that referenced this pull request May 30, 2023
KristofferC pushed a commit that referenced this pull request May 30, 2023
@LilithHafner
Copy link
Member Author

Sorry about that. Thank you for reverting.

@LilithHafner LilithHafner restored the LilithHafner-patch-2 branch May 30, 2023 13:08
@oscardssmith oscardssmith deleted the LilithHafner-patch-2 branch May 30, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants