Closed
Description
Facebook's alternative C++ STL uses a rather dynamic strategy to ostensibly be friendly for common workloads and jemalloc's size classes. While most of FBVector's stuff is hacking around the fact the move/copy constructors are Awful, this seems applicable to us.
See:
- https://github.com/facebook/folly/blob/fd0b3090840d742492793fe306185550f0300283/folly/FBVector.h#L1165-L1194
- https://github.com/facebook/folly/blob/master/folly/memory/Malloc.h#L206-L223
- https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md
- benchmark whether 1.5x is a better growth factor for vectors #4961