Closed
Description
It's often useful to have a vector optimized for storing small sequences. LLVM includes a SmallVector
templated type which takes the size to store inside the struct as a template parameter, which isn't possible at the moment in Rust. However, it would be fine to just copy what libc++ does for std::string
which is to store 3 words in the struct (size, capacity, and the pointer) and reuse that space for the small string optimization.