~/talk

How To Profile Compilation Duration?

Talkat CppCon 2020 · 2020-09-14..09-18· [developer-experience]
links:none on file
slides:none on file

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

~/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.