News for hackers. Stuff that matters.
Re:Data Structures Part 3: Arrays of Arrays by QuadDamaged on Tuesday October 01, 2019 @04:51AM (#21123345)
`SmallVec` allocates a contiguous array in the struct holding the vector itself (so it can be located on the stack), then if the capacity is insufficent, fallbacks to a heap-allocated `Vec` equivalent.

The `Vec` struct contains the capacity and used length integers, as well as a pointer to the heap-allocated storage.

There are no comments on this comment yet.