3 ms·
and you now have unchecked use-after-decommisioning-the-index and double-decommission-the-index errors, which could be security regressions
by throwawaymaths 2y ago
and you now have unchecked use-after-decommisioning-the-index and double-decommission-the-index errors, which could be security regressions
- estebank 2y agoThat's true only if you use Vec<T> instead of a specialized arena, either append only, maybe growable, or generational, where access invalidation is tracked for you on access.
- oconnor663 2y agoYeah if you go with Vec, you have to accept that you can't delete anything until you're done with the whole collection. A lot of programs (including basically anything that isn't long running) can accept that. The rest need to use SlotMap or similar, which is an easy transition that you can make as needed.