Skip to content

perf(tombmap): use ahash for default hashing strategy#344

Merged
JeanMertz merged 1 commit intomainfrom
jean/pr32
Dec 30, 2025
Merged

perf(tombmap): use ahash for default hashing strategy#344
JeanMertz merged 1 commit intomainfrom
jean/pr32

Conversation

@JeanMertz
Copy link
Collaborator

Switch the jp_tombmap crate to use ahash instead of the standard library's default hasher. ahash provides a faster, non-cryptographic hashing algorithm which improves the performance of map operations.

The RandomState in lib.rs now points to ahash::RandomState, and test utilities have been updated to support generic BuildHasher types to remain compatible with the new default.

Switch the `jp_tombmap` crate to use `ahash` instead of the standard
library's default hasher. `ahash` provides a faster, non-cryptographic
hashing algorithm which improves the performance of map operations.

The `RandomState` in `lib.rs` now points to `ahash::RandomState`, and
test utilities have been updated to support generic `BuildHasher` types
to remain compatible with the new default.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit e6dc586 into main Dec 30, 2025
12 checks passed
@JeanMertz JeanMertz deleted the jean/pr32 branch December 30, 2025 15:43
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.

1 participant