1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use {
fxhash::{FxHasher, FxHasher32, FxHasher64},
hashbrown::{HashMap, HashSet},
std::hash::BuildHasherDefault,
};
pub type FastMap1<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher>>;
pub type FastMap4<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher32>>;
pub type FastMap8<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher64>>;
pub type FastSet1<V> = HashSet<V, BuildHasherDefault<FxHasher>>;
pub type FastSet4<V> = HashSet<V, BuildHasherDefault<FxHasher32>>;
pub type FastSet8<V> = HashSet<V, BuildHasherDefault<FxHasher64>>;