The Hitchhiker's Guide to Faster Builds
Explore techniques and tools for improving C++ build times in this comprehensive conference talk. Gain insights into the reasons behind long compilation and linking times in C++, and discover an extensive list of strategies to enhance productivity. Learn about hardware considerations, build systems, caching mechanisms, and distributed builds. Delve into code hygiene practices, unity builds, precompiled headers, and optimal linking strategies. Examine source code modification techniques like the PIMPL idiom and effective template usage. Understand the concept of modules in C++, their upcoming implementation, and how they will impact existing practices. Acquire practical knowledge to diagnose bottlenecks, optimize code structure, and significantly reduce build times in C++ projects.