C++ Small string optimizations - dbj( org );
What is “small string optimization”? Standard C++ string stores its data on the heap. But that is only true if the string grows over an implementation-dependent size. That predefined size for std::string is/was 15 for MSVC and GCC and 23 for Clang. That is: C++ string stays “small”, if you have not asked for bigger than 15/23 … Continue reading "C++ Small string optimizations"