refactor: bump hashbrown
to v0.15.0, use HashTable
api
#6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I had previously thought that the older raw API was more performant, but after some additional testing the new API appears to work well. It allows me to remove some unsafe code, so updating seems like a win-win.
Important
Refactor to use
hashbrown
v0.15.0HashTable
API, removing unsafe code inshard.rs
andshard_map.rs
.hashbrown
to version 0.15.0 inCargo.toml
andCargo.lock
.allocator-api2
,equivalent
, andfoldhash
inCargo.lock
.hashbrown::raw::RawTable
withhashbrown::HashTable
inshard.rs
.hashbrown::hash_table::Entry
API inshard_map.rs
forinsert
,get
,get_mut
, andremove
functions.hash_u64()
function inshard_map.rs
and replace withhash_one()
method.shard_map.rs
.This description was created by for bcc542b. It will automatically update as commits are pushed.