~/talk

Most Malleable Memory Management Method

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [c-and-cpp]
slides:none on file

Demonstrates using C++ PMR to cut allocation churn and tune locality: baseline run records 133,540 allocations with heaptrack, then swapping to an unsynchronized_pool_resource reduces allocations to about 84, massively lowering allocator overhead. Shows building a tracing memory_resource, explains cascading resources (monotonic_buffer_resource → pool → new_delete), and details how custom types must expose an allocator alias plus allocator-aware copy/move ctors. Notes PMR increases per-object size (extra pointers) and that tools are essential.

AI-written summary · about

  1. 0:00Memory management challenges
  2. 7:34Polymorphic memory resources
  3. 15:43Tracing memory resource demo
  4. 21:30Heap Track baseline
  5. 22:32Optimizing with PMR allocators
  6. 30:35Cascading memory resources
  7. 39:54PMR debugging pitfalls
  8. 42:57Custom PMR-compatible types
  9. 51:02Advantages and drawbacks of PMR
  10. 57:07Advanced PMR use cases
  11. 58:48Q&A on best practices
~/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.