~/talk

Missing Optimizations on Node-based Containers

Talkat ACCU 2017 · 2017-04-24..04-29· [c-and-cpp]
links:none on file
slides:none on file

Rewrites of std::list methods trade pointer-chasing for independent memory loads: run forward and backward iterators per loop, buffer reads then commit writes (double-swap write buffering) and add skip-links for multi-way traversal. Benchmarks over hundreds of thousands of 64-byte nodes show 1.84× speedup on random layouts (only ~5% on sequential), the double-swap approaches 2×, and a 3-way skip variant yields 2.56× with 3-way skipping. Compiler restrict hints help inconsistently; results are CPU-level, language-agnostic optimizations.

AI-written summary · about

  1. 0:00Start
  2. 3:02Instruction-Level Parallelism
  3. 4:10Data dependencies in std-list-reverse
  4. 6:36Why does it fall short of 2x improvement?
  5. 7:00Optimizing swaps
  6. 7:58Benchmarks
  7. 8:15Other examples of unnecessary RAW dependencies
  8. 9:14Does the restrict keyword help?
  9. 10:47Loopidly linked lists
~/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.