~/talk

How to understand million-line C++ projects

Talkat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
links:none on file
slides:none on file

A concrete workflow emerges: scan a 7 million line C++ codebase with ~500 components, detect dependency cycles and measure their cost, iterate from slow shell scripts to Python to a C++ tool that shrinks runtime from minutes to 1.1 second interactive queries, find a single header causing 33,000 lines to be included in 7,200 builds (≈300 million compiled lines), generate CMake target lists, enforce checks in CI, and report 325 million paths between components so teams can remove dead headers and split monoliths.

AI-written summary · about

  1. 0:00Introduction
  2. 0:19Hard to understand
  3. 0:39Long run time
  4. 2:24The solution
  5. 3:53What many people do
  6. 4:30Its not just you
  7. 5:12Take the code base
  8. 6:09Code is a cost
  9. 7:12Test coverage
  10. 8:19Tools
  11. 10:32Better
  12. 11:52Navigation
  13. 12:14Readability
  14. 12:44Stable
  15. 13:37Duplicates
  16. 14:42Component size
  17. 15:29Mental load
  18. 16:39Component responsibility
  19. 17:11Appendix
  20. 18:21Codebase
  21. 18:56Read all code
  22. 19:26Extract function
  23. 20:42Interactive user
  24. 21:34Optimizing
  25. 22:06Counting
  26. 23:30dependencies
  27. 24:16high level vs low level
  28. 24:51monoliths
  29. 25:46Swiss Army Knife
  30. 26:06Cycles
  31. 28:20Headers
  32. 30:01Example
  33. 31:11Coherent
  34. 32:04Overdependent
  35. 32:41Encapsulation
  36. 35:22Questions
  37. 36:07Do you share the tool
  38. 37:23Can you do with switcher
  39. 39:05Linktime optimization
  40. 41:04Virtualization
  41. 42:06Header dependencies
  42. 43:14Private headers
  43. 44:28Cycles in the build
~/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.