>>107006341
>and never profiled how costly something like realloc() is.
Ironically, std::vector doesn't use realloc, not even for built-in types.