An Informal Comparison of the Three Major Implementations of std::string -- Raymond Chen
We saw some time ago that the three major implementations of std::string are all quite different...
An informal comparison of the three major implementations of std::string
by Raymond Chen
From the article:
In the original version of this article, I got the sense of the “small/large” bit backward in the clang implementation. This in turn led to redoing the code generation and new code golfing results.
We’ll compare these versions based on the complexity of some commonly-used operations.


Registration is now open for CppCon 2024! The conference starts on September 15 and will be held
Registration is now open for CppCon 2024! The conference starts on September 15 and will be held
In the
Registration is now open for CppCon 2024! The conference starts on September 15 and will be held
In Qt 4, container classes like QVector introduced an optimization that transformed certain operations on contained objects into efficient byte-level manipulations. By identifying types that can be safely moved via a simple memory copy, Qt was able to streamline reallocations for specific data types like 