Essential C++ Tips and Tricks for the Ultimate Cpp Performance
summary
Shows how unique_ptr with a custom deleter shrinks from two pointers to one by exploiting no_unique_address / EBO, trimming size by about 50% and even shaving instructions with C++23 static lambda call operators. Compares SSO layouts across libstdc++, MSVC, libc++ and FBString and the surprising capacities: roughly 8 vs 15 vs 23 bytes for small-buffer optimization depending on layout tricks. Demonstrates making fixed compile-time strings truly reside in ROM via initializer_list backing array becomes static in GCC14, saving RAM and runtime copies.
AI-written summary · about
