~/talk

What do you mean by "Cache Friendly"?

Talkat NDC TechTown 2020 · 2020-08-31..09-03· [web-performance]
slides:none on file

A linked‑list timer implementation hits 75% CPU in one function when stressed with ~20–25k live timers because pointer chasing forces cache misses; a cache simulation shows roughly 70% L1 misses. Replacing pointers with a contiguous vector increases instructions but runs much faster due to prefetching; a binary search cuts misses but reveals speculative‑execution effects; a heap (std::priority_queue) is ~2× faster, and a cache‑aware b‑heap reduces L1 misses from ~120M to ~84M. Key rules: keep working set small and contiguous.

AI-written summary · about

  1. 0:00Introduction
  2. 0:31Identifying the performance issue
  3. 2:52Analyzing the timer algorithm
  4. 4:26Cache-oblivious data structures
  5. 5:46Mental model of cache behavior
  6. 10:06Advanced considerations
  7. 12:56Testing with Valgrind
  8. 14:54Profiling methodology
  9. 17:20Profiling results
  10. 20:22Interpreting cache misses
  11. 25:01Linear array implementation
  12. 26:21Using Perf for system analysis
  13. 32:39Counter-intuitive performance findings
  14. 34:05Binary search implementation
  15. 38:40Evaluating std::multimap
  16. 40:45Data scale considerations
  17. 45:56Heap data structure
  18. 50:36Priority queue implementation
  19. 55:00B-heap optimization
  20. 59:28Conclusion
~/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.