Use wyhash over fxhash

This commit is contained in:
Richard Feldman 2019-11-26 17:17:20 -05:00
parent 25cd967cee
commit e40b1d42fa
6 changed files with 22 additions and 22 deletions

View file

@ -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()
}
}
}