~/talk

“An allocator model for std2”

Talkat CppCon 2017 · 2017-09-24..09-29· [c-and-cpp, software-architecture]
links:none on file
slides:none on file

Proposes replacing the many C++ allocator models with a single pmr-like runtime model that keeps allocators out of the type system, stashes a memory_resource pointer in allocator-aware objects, and passes a hidden allocator argument during construction (example: implicit allocator-awareness and inject from_stack). Claims real workloads see 3–5x throughput on allocation and larger runtime gains from locality; tradeoffs include virtual dispatch and void* APIs (no fancy pointers). Bloomberg-grade implementations exist and report large performance and instrumentation wins.

AI-written summary · about

  1. 0:00Intro
  2. 0:52What is an allocator?
  3. 1:33Why Do We Want Allocators?
  4. 2:38Performance
  5. 8:59Utility
  6. 9:47Special Memory
  7. 11:20How are allocators made available in C++98?
  8. 15:13Weasel Words
  9. 16:43Allocator Traits
  10. 20:53How did we improve support in C++17
  11. 24:24How does pmr work?
  12. 26:40memory_resource
  13. 28:21Idiom and usage of pmr
  14. 34:12Limitations of pmr
  15. 35:30Bloomberg Experience
  16. 36:43Why Complexity Matters
  17. 39:31Allocator Propagation
  18. 42:13Why Propagation Matters
  19. 43:06Complexity of Propagation
  20. 43:28Syntactic overhead is high
  21. 45:55Copy Constructor Issue
  22. 48:20Allocator Awareness
  23. 50:18Implementing Awareness
  24. 52:10Implicit Awareness
  25. 52:25Allocator Injection
  26. 53:42Example Code
  27. 56:20Containers use allocators internally
  28. 56:57Allocator Customization
~/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.