~/talk

Throwing Tools at Ranges

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [frontend-architecture]
slides:none on file

Compares three implementations — C-style C++, C++17, C++23/ranges — using Google Benchmark, cach Grint and the Visual Studio profiler on Windows and Linux. Finds ranges version initially has many more instruction refs and is much slower because the cartesian_product view evaluates twice; forcing materialization to a vector removes duplicated work and roughly doubles performance. C-style uses the fewest instructions; after targeted changes all versions run similarly fast and memory/cache behavior explains remaining differences.

AI-written summary · about

  1. 0:00Talk introduction and setup
  2. 2:18Analysis tools and environment
  3. 4:25Overview of code examples
  4. 6:32Analyzing the first function
  5. 10:39Analyzing the second function
  6. 12:50Analyzing the third function
  7. 17:05Initial benchmarking results
  8. 19:45Cache grind profiling analysis
  9. 29:50Visual Studio profiling demo
  10. 43:25Optimizing the code examples
  11. 49:27Final results and comparison
  12. 51:43Conclusion 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.