~/talk

What Do You Mean by "Cache Friendly"?

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp]
slides:none on file

A 20,000-entry intrusive linked list (≈40 bytes per timer) causes ~70% L1 misses and pegs a control daemon; valgrind/cachegrind and perf pinpoint the while-loop pointer chasing as the hotspot. Replacing with a contiguous vector plus binary search roughly halves time, plain linear insert is faster up to ~200 elements, and a heap (split payload + index) cuts cycles further (measured up to ~4× faster). Tools: valgrind/cachegrind, perf and flame graphs; experiment with B‑heap block layout for cache-line locality.

AI-written summary · about

  1. 0:00Introduction
  2. 5:53Cache oblivious structures
  3. 12:07Timer performance with cache simulation
  4. 27:14Cache profiling tools
  5. 36:13Rewriting timers with linear arrays
  6. 42:43Binary vs linear search in timers
  7. 44:27Evaluating std::map for timers
  8. 50:26Heap data structures for timers
  9. 59:51Optimizing heap with mini heaps
  10. 1:07:14Timer implementations compared
  11. 1:14:17Cache-friendly code rules
  12. 1:16:17Q&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.