3 ms·
Better than a hash map of ids/values is to use slotmap, a library that handles everything safely for you (with generation indexing and free lists behind the sce
by gpm 4y ago
Better than a hash map of ids/values is to use slotmap, a library that handles everything safely for you (with generation indexing and free lists behind the scenes).
https://crates.io/crates/slotmap https://crates.io/crates/slotmap