mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Use wyhash over fxhash
This commit is contained in:
parent
25cd967cee
commit
e40b1d42fa
6 changed files with 22 additions and 22 deletions
|
@ -1,10 +1,10 @@
|
|||
use im_rc::hashmap::HashMap;
|
||||
use im_rc::vector::Vector;
|
||||
use fxhash::FxHasher;
|
||||
use wyhash::WyHash;
|
||||
|
||||
/// A persistent HashMap which records insertion order and iterates in that order.
|
||||
pub struct Map<K, V> {
|
||||
store: HashMap<K, V, BuildHasherDefault<FxHasher>>;
|
||||
store: HashMap<K, V, BuildHasherDefault<WyHash>>;
|
||||
order: Vector<K>
|
||||
}
|
||||
|
||||
|
@ -12,4 +12,4 @@ impl<K, V> Map<K, V> {
|
|||
pub fn is_empty(self) -> bool {
|
||||
self.store.is_empty()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue