Skip to content

Use top_set_bit to optimize hash(Real)#49986

Merged
LilithHafner merged 1 commit intomasterfrom
LilithHafner-patch-2
May 29, 2023
Merged

Use top_set_bit to optimize hash(Real)#49986
LilithHafner merged 1 commit intomasterfrom
LilithHafner-patch-2

Conversation

@LilithHafner
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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