~/talk

Efficiency with Algorithms, Performance with Data Structures

Talkat CppCon 2014 · on Monday, 2014-09-08· at 16:45· Pascal· [rust]
slides:none on file

Claim: efficiency comes from doing less work (algorithms) and performance from making memory accesses fast (data structures). Evidence: CPUs spend ~50–75% of time waiting for memory, L1 vs main memory is ~100× latency, cache lines ~64 bytes, switching to reserve before push_back and to contiguous storage yields large wins; separate-node lists and bucketed unordered_map cause cache misses, while open‑addressed hash tables or plain vector-backed queues give 5–10× or greater speedups in practice.

AI-written summary · about

  1. 0:00Start
  2. 10:47HIGH LEVEL THESIS
  3. 11:26EFFICIENCY: HOW MUCH WORK IS REQUIRED BY A TASK
  4. 13:32PERFORMANCE HOW QUICKLY A PROGRAM DOES ITS WORK
  5. 17:26ALL COMES BACK TO WATTS
  6. 19:20SUB-STRING SEARCHING
  7. 28:35DO LESS WORK BY NOT WASTING EFFORT
  8. 35:27MODERN CPUS ARE TOO FAST
  9. 37:26CPUS HAVE A HIERARCHICAL CACHE SYSTEM
  10. 41:57STACKSY QUEUES? MAPSY
  11. 47:01STD::UNORDERED MAP
  12. 49:06A GOOD HASH TABLE DESIGN
  13. 51:34DATA STRUCTURES AND ALGORITHMS
  14. 54:57CONCLUSION
~/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.