~/talk

C++ Relocation - How to Achieve Blazing Fast Save and Restore and More!

Talkat CppCon 2024 · on Tuesday, 2024-09-17· at 09:00· Cottonwood 8/9, 6700 North Gaylord Rockies Boulevard· [rust]
slides:none on file

Claims that transforming objects into columnwise structures of arrays and using Type Erasure tailored for relocatability removes millions of tiny allocations and pointer chasing, yields better-than-virtual-polymorphism performance, and makes save/restore a simple memory dump or memory-mapped buffers. Describes concrete tools: handles + stable indices (forward/back maps), an efficient map/flat_set approach, and a new Value Manager concept for allocation control. Provides proofs of concept and performance anecdotes (7% CPU spent on dealloc at Google) and reports measurable speed and allocation reductions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Relocation in C++
  3. 5:27Traditional OOP problems
  4. 14:15Column-wise data
  5. 20:35Entity component systems and handles
  6. 29:11Data orientation limits
  7. 31:00Advantages of relocation for performance
  8. 36:18Fragmentation management
  9. 39:31Stable indices and maps
  10. 42:02Relocation beyond performance
  11. 43:50Memory locality issues
  12. 47:38Use cases for relocation
  13. 49:01Production challenges
  14. 51:33Standard library gaps
  15. 53:45Language improvements
  16. 54:49Conclusion
~/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.