Open NeverGivinUp opened 6 months ago
At the moment this is not guaranteed but should work. For a DenseSlotMap
it won't work. I'd like to guarantee this actually works in slotmap
2.0.
That's great. Indexing in a FxHashMap with slot-map keys is about the same speed as indexing in a SecondaryMap. But iterating a SecondaryMap is so much faster than iterating a FxHashMap. Since performance is the only reason I use slot-maps not having to index into a secondary map while iterating is very important for me. Looking forward to slotmap 2.0, then. Do you already have any estimates wtr. publication date and the amount of API changes?
Iterators very explicitly say, that the visit key-value pairs "in arbitrary order". Is this "arbitrary order" consistent between a
SlotMap
and its dependentSecondaryMap
s, so they can be joined (assuming they contain exactly the same keys in the same version)?Is the following guaranteed to work, or is it working just an accident?