~/talk

Most Malleable Memory Management Method in C++

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
slides:none on file

Shows runtime-swappable allocators and concrete wins: using polymorphic_allocator plus an unsynchronized_pool_resource on a word‑histogram drops allocations from ~133k to ~29k (over 4× reduction) as measured with Heaptrack and flame graphs. Provides a tracing memory_resource example and a PMR‑aware counted_string implementation that needs allocator‑last and copy/move‑with‑allocator constructors. Warns about forgetting to pass resources (defaults to new/delete), per‑object allocator pointer overhead, and that allocators never change on move assignment.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Memory management in C++
  3. 4:21PMR allocators basics
  4. 9:06Tracing memory resource demo
  5. 13:43Heap Track allocations
  6. 17:28Histogram with PMR
  7. 20:43Different memory resources
  8. 26:02Optimizing histogram with PMR
  9. 31:30PMR-compatible custom types
  10. 36:16Debugging PMR types
  11. 40:12PMR allocators pros and cons
  12. 46:37PMR design decisions
  13. 48:25Further learning
~/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.