~/lightning

Lightning Talk: Speeding up code with C++17 Polymorphic Memory Resources

Lightningat C++ on Sea 2019 · 2019-02-04..02-06· [c-and-cpp]
slides:none on file

Shows using C++17 polymorphic memory resource to cut heap churn: a custom counting allocator intercepts new/delete and measures 86 allocations and ~13–14 µs on a 20‑byte string. Swapping to a monotonic_buffer_resource drops allocations to 8 and time to ~2.9 µs; preallocating 4 KB gives 1 allocation and ~2.55 µs. A stack‑based buffer yields zero heap allocations and about a 6× speedup. Demonstrates concrete allocator plumbing and pooling that actually works.

AI-written summary · about

  1. 0:00Intro
  2. 0:35Motivation
  3. 1:34Std library custom allocators
  4. 3:18My Counting Memory Resource
  5. 3:30Benchmarks - count standard allocations
  6. 3:50monotonic_buffer_resource
  7. 4:05Benchmarks - Add MBR using heap
  8. 4:28Benchmarks - MBR with heap headstart
  9. 4:46Benchmarks - check for 'overflow
~/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.