What Is the C++ Small String Optimization (SSO)? -- Giovanni Dicanio
What is the Small String Optimization (SSO)?
Let's discover that in the following blog post:
The C++ Small String Optimization
by Giovanni Dicanio
From the article:
How do “Connie” and “meow” differ from “The Commodore 64 is a great computer”?
In several implementations, [...], the STL string classes are empowered by an interesting optimization: The Small String Optimization (SSO).


The Model-View-Controller (MVC) is one of the classic architectural patterns from the book "Pattern-Oriented Software Architecture, Volume 1". It addresses interactive applications with a flexible human-machine interface.
Optimizing compilers seek try to push as much of the computation as possible at compile time.
In my previous post I showed how to compile {fmt} as a C++20 module with clang. Although taking only two commands, ideally it’s not something you should be doing manually. So in this post, I’ll talk about module support in CMake, everyone’s favorite not a build system.