~/talk

Practical Techniques for Improving C++ Build Times

Talkat CppCon 2017 · 2017-09-24..09-29· [developer-experience]
links:none on file
slides:none on file

Facebook shrinks C++ builds from hours to about five–ten minutes with a mix of tooling and code changes: use Buck for reproducible, content-addressed builds and HTTP + local caches, populate CI-built artifacts to get ~100% cache hits or use a warm revision (≈30% slower but automatic); offload compilation with distcc, run builds on tmpfs, update compilers for ~20% speedups, apply PGO for ~10% gains, strip ELF sections to avoid needless relinks, use visibility-inlines-hidden for ~50% link wins (watch static variables), and parallel link jobs (N≈4) for ~30% link speedups.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:53Measuring build times
  3. 13:43Build system infrastructure
  4. 25:41Compiler and linking optimizations
  5. 34:17Codebase refactoring techniques
  6. 37:32Failed experiments and lessons
  7. 43:21Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.