Plenary: C++ MythBusters
summary
Printf family hits global locale locks so replacing sprintf with the fmt library or std::format yields big wins — a macOS case shows about a 4x speedup. std::regex compiles and runs slowly; prefer compile‑time engines like ctre for most patterns. std::optional normally optimizes away overhead but silently copies when returning a mismatched type; C++23 adds monadic optional helpers and libraries like tartanllama provide similar APIs. std::move is only a cast; behavior differs across compilers.
AI-written summary · about
chapters (11)
- 0:00Start
- 12:42Replacing S Printf with the Format Library
- 14:18Tooling
- 16:41Standard Regex Is Too Slow for Production Use
- 18:21The Ctre Library
- 25:47Optional Complicates Apis
- 26:13Optional for Error Handling
- 31:23The Standard Move
- 34:48Move Semantics
- 43:48Abstraction Patterns
- 45:25Iterators Must Go
related talks
01h 21mC++ MythBusters
01h 01m“A modern formatting library for C++”
01h 08mC++ MythBusters Strike 2
59mModern C++ for Fun and Profit: This isn’t your old C++
57mC++ MythBusters Strike 2
51mTypical C++, but Why?
01h 01mC++20: What's in it for you?
01h 30mTuning C++: Benchmarks, and CPUs, and Compilers! Oh My!
