~/talk

Getting Allocators out of Our Way

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
links:none on file
slides:none on file

Shows how C++ polymorphic allocators (pmr) plus a compiler-supported “allocator-aware” class model eliminate most boilerplate: a stack-buffer + monotonic_buffer_resource yields a 5x speedup on a string-unique-count example; rewriting a heavyweight type drops constructors from about 15 to 5; a prototype compiler and experiments with GCC/Clang explore injecting implicit allocator propagation for aggregates, move/copy, and scoped allocation chains (unsynchronized pool, monotonic, test resource) and the design appears to work without runtime overhead.

AI-written summary · about

  1. 0:00Introduction
  2. 0:20Getting Allocators out of Our Way
  3. 2:15Costs
  4. 3:06Language Proposal
  5. 3:22Michelangelo
  6. 3:39Pablo Halpern
  7. 6:35Outline
  8. 7:09Memory Performance
  9. 8:09Why Custom Memory Allocation
  10. 9:49Fragmentation
  11. 10:14Alligators
  12. 12:36Nesting Containers
  13. 13:52Scoped Allocator Model
  14. 15:13Instantiating Allocators
  15. 17:50Congratulations
  16. 18:02Polymorphic Memory Resource
  17. 21:43Polymorphic Alligator Bite
  18. 22:56Memory Allocation
  19. 23:48Unsynchronized Pool
  20. 25:57Monotonic Buffer Resource
  21. 27:43Test Resource
  22. 28:42Chained Resources
  23. 29:34Allocators
  24. 29:49Constructor
  25. 30:01Alligator
  26. 31:41Complications
  27. 33:53HashMap
  28. 34:44Constructors
  29. 35:50Recap
  30. 37:02Language solution
  31. 37:31Pablos solution
  32. 38:45Pablos ideal solution
  33. 39:17Alligator aware type
  34. 40:48Essential properties
  35. 42:20The real when
  36. 45:06Result
  37. 46:07Example
  38. 49:31Aggregates
  39. 52:53Backwards compatibility
  40. 55:10Summary
  41. 57:14Questions
~/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.