If you’ve been paying attention to the latest advances in C++ compilers (GCC, Clang, and MSVC, in particular), you might have noticed that compilation speeds are improving. In particular, compilers are getting more and more incremental, so that instead of rebuilding the entire translation unit, the compiler can actually only rebuild the definitions that have changed, and reuse the rest.
The reason I’m bringing up C++ compilation is because “one weird trick” (that phrase again!) has been consistently used by developers to try and optimize the speed of compilation in the past.
I am, of course, ...