Function casper_node::utils::ds::hashmap_sample [−][src]
pub fn hashmap_sample<K, V>(map: &HashMap<K, V>) -> usize where
K: DataSize,
V: DataSize,
Expand description
Extrapolate memory usage of a HashMap by from a random subset of SAMPLE_SIZE items.