[libcxx-commits] [libcxx] Change 'grow_by' to use precise size for the first SSO --> long allocation (PR #69967)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 8 16:39:10 PST 2023


================
@@ -2315,10 +2315,13 @@ basic_string<_CharT, _Traits, _Allocator>::__grow_by_and_replace
     size_type __ms = max_size();
----------------
ldionne wrote:

Not attached to this line. Can you folks provide some insight w.r.t. the benefits of doing this in practice? I'm sure you didn't just wake up one morning and decide that this was probably going to be better. How much impact does this have in practice?

https://github.com/llvm/llvm-project/pull/69967


More information about the libcxx-commits mailing list