How To Profile Compilation Duration?
summary
Project starts with full build + tests at 15 minutes and grows to ≈1 hour; profiling uses -ftime-report (g++) and -ftime-trace (clang) plus Boost profile templates. Concrete example: a templated function called with six types produces 36 instantiations; collapsing signatures via implicit conversions drops to five instantiations, yields a smaller binary and cuts a measurable chunk (about 20%) of compile time. Focus on counting instantiations, compiler-time hotspots, and refactoring heavy templates.
AI-written summary · about
related talks
53mReducing C++ Compilation Times Through Good Design
53mWhy Is My C++ Build So Slow? Compilation Profiling and Visualization
59mThe Hitchhikers guide to faster builds
30mSeven ways to Profile Go Applications
29mOptimizing compilation times with Templates
01h 44mImproving C++ Compilation Times: Tools & Techniques
56mPractical Techniques for Improving C++ Build Times
35mHow we brought down our build times. Modularization impact on build speeds and metrics
