~/talk

[a bit noisy] Optimizing Generic Algorithms

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
links:none on file
slides:none on file

Claims concrete wins and the measurement setup: use Google Benchmark and perf on a single compiler/machine, watch for code alignment effects. Replacing midpoint with half_non_negative yields about 30% faster lower_bound on integers. Unrolling the merge loop cuts branches and speeds merge roughly a third. Sorting pointers then rearranging the array drastically reduces moves (order-of-magnitude fewer), but pays in cache locality; validate with targeted benchmarks and stabilizer/perf permutations.

AI-written summary · about

  1. 0:00Introduction
  2. 2:48Microbenchmarking pitfalls
  3. 7:51Binary search optimization
  4. 15:41Merge optimization
  5. 25:45Stable sort optimizations
  6. 37:06Generic component strategies
  7. 41:24Q&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.