2 ms·
Or a Vec<T> for storage and a Vec<usize> for tombstoning. Lots of ways to solve this, and my experience is that you can beat a linked list approach with the 'Ve
by staticassertion 5y ago
Or a Vec<T> for storage and a Vec<usize> for tombstoning. Lots of ways to solve this, and my experience is that you can beat a linked list approach with the 'Vec plus Vec' approach for a lot of data sizes/ operations.
Or a custom Vec that has a lower maximum bound, at which point you can start doing things like integer encoding/ pointer swizzling.