3 ms·
From the docs page [0] for std::collections::HashMap, Rust uses backwards shift deletion [1] instead of the tombstone method. [0] https://doc.rust-lang.org/std
by doomrobo 10y ago
From the docs page [0] for std::collections::HashMap, Rust uses backwards shift deletion [1] instead of the tombstone method.
[0] https://doc.rust-lang.org/std/collections/struct.HashMap.html https://doc.rust-lang.org/std/collections/struct.HashMap.htm...
[1] http://codecapsule.com/2013/11/17/robin-hood-hashing-backward-shift-deletion/ http://codecapsule.com/2013/11/17/robin-hood-hashing-backwar...
- Animats 10y agoThat makes sense. With the tombstone method, hashmaps get worse with age.