Re:Facebook's std::vector optimization
by darkpore on Saturday August 30, 2014 @07:49AM
(#8246199)
You can get around a lot of these issues by reserving the size needed up front, or using a custom allocator with std::vector. Not as easy, but still doable.
The reallocation issue isn't fixable this way however...
The reallocation issue isn't fixable this way however...