~/talk

Improving Compilation Times: Tools & Techniques

Talkat Core C++ 2023 · 2023-06-05..06-07· [c-and-cpp]
slides:none on file

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

  1. 0:00Introduction and motivation
  2. 10:38Build systems and linkers
  3. 23:21Caching and environment
  4. 30:29Precompiled headers
  5. 39:32Unity builds
  6. 43:27Identifying bottlenecks
  7. 47:52Improving physical design
  8. 56:26Standard library impact
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.