-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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.
entropy-map/src/map_with_dict.rs
Lines 114 to 120 in 0943c6d
| 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?
Metadata
Metadata
Assignees
Labels
No labels