Improving Compilation Times: Tools & Techniques
summary
Benchmarks on the SFML project (~225 source files) show practical wins: switching ninja vs make cuts a full rebuild from ~5.9s to <1s, changing linkers moves Chromium link from ~209s (ld) to ~16.7s (lld) and to ~2s with mold, and enabling precompiled headers with reuse drops SFML full rebuilds from ~34s to ~19.3s. Unity builds yield ~30% faster rebuilds. Useful tools include clang -ftime-trace + clang-build-analyzer for hotspots, and ccache/sccache for caching.
AI-written summary · about
