I want to try out mphf, but I don't understand how it handles collisions. Are collisions for never seen keys can happen? Maybe add this info to the mphf docs somewhere.
|
if self.keys.get_unchecked(idx) == key { |
|
// SAFETY: `idx` and `value_idx` are always within bounds (ensure during construction) |
|
let value_idx = *self.values_index.get_unchecked(idx); |
|
Some(self.values_dict.get_unchecked(value_idx)) |
|
} else { |
|
None |
|
} |
What is this keys check for?
I want to try out
mphf, but I don't understand how it handles collisions. Are collisions for never seen keys can happen? Maybe add this info to themphfdocs somewhere.entropy-map/src/map_with_dict.rs
Lines 114 to 120 in 0943c6d
What is this
keyscheck for?