Skip to content

faster hashing#52

Merged
rfourquet merged 4 commits into
masterfrom
hash
Mar 27, 2025
Merged

faster hashing#52
rfourquet merged 4 commits into
masterfrom
hash

Conversation

@rfourquet

Copy link
Copy Markdown
Owner

For <= 64 bits, this converts to Base's types.
Beyond 64 bits, the generic hash(x::Real, h::UInt) method is used, like for [U]Int128, but Base.top_set_bit has to be specialized to make this fast.

Fix #43.

For <= 64 bits, this converts to Base's types.
Beyond 64 bits, the generic `hash(x::Real, h::UInt)` method is used, like for
`[U]Int128`, but `Base.top_set_bit` has to be specialized to make this fast.
@rfourquet

rfourquet commented Mar 26, 2025

Copy link
Copy Markdown
Owner Author

Seems like we will drop support for v1.0, not worth bothering with special code for this old version. Actually, the fix was easy.

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.

Hashing BitIntegers.jl Integers is slow

1 participant