Move Sharded maps into each QueryCache impl
This commit is contained in:
parent
3b348d932a
commit
9deed6f74e
8 changed files with 53 additions and 122 deletions
|
@ -129,7 +129,7 @@ impl<K: Eq + Hash + Copy + IntoPointer> ShardedHashMap<K, ()> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn make_hash<K: Hash + ?Sized>(val: &K) -> u64 {
|
||||
pub fn make_hash<K: Hash + ?Sized>(val: &K) -> u64 {
|
||||
let mut state = FxHasher::default();
|
||||
val.hash(&mut state);
|
||||
state.finish()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue