~/talk

Compilation Speedup Using C++ Modules: A Case Study

Talkat CppCon 2022 · 2022-09-11..09-16· [rust]
links:none on file
slides:none on file

A modularized real project is built and measured with clang and a hand written makefile; demo builds show up to about 4× speedup at -O0 and an average around 2×, while the unit-test build shows under ~10% improvement in many configurations. An implemented function reduction optimization and use of single-thread LTO further cut compile time without consistent runtime regressions; a simple HTTP server benchmark reports comparable or slightly higher QPS after tuning import thresholds.

AI-written summary · about

  1. 0:00Introduction to modules
  2. 2:19Understanding module usage
  3. 5:54Compilation speed theory
  4. 8:18Impact of optimizations
  5. 12:01Inline functions and templates
  6. 14:15Case study setup
  7. 17:55Measuring compilation time
  8. 21:07Experimental results
  9. 23:11Analysis of results
  10. 25:50Module composition impact
  11. 27:10Function reduction
  12. 30:28QPS and performance tuning
  13. 33:28Future improvements
  14. 35:15Library optimization strategies
  15. 36:42Template instantiation trap
  16. 39:26Long-term outlook and Q&A
~/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.