~/talk

The Impact of Memory Allocators on Performance: A Deep Dive

Talkat EuroRust 2024 · 2024-10-10..10-11· [rust]
slides:none on file

Benchmarks use Criterion on bare-metal VMs and CutSpeed for noisy measurement and show concrete wins: jemalloc and mimalloc outperform the default allocator by up to 3× faster on certain workloads, while a bump allocator is dramatically faster for many tiny allocations but inflates memory footprint. Results include a 128-byte concurrent test that exposes poor scaling for one allocator and a 5–25 MB randomized test keeping 20 live blocks to reveal fragmentation and throughput tradeoffs.

AI-written summary · about

  1. 0:00Memory allocators intro
  2. 2:53Why allocation is necessary
  3. 4:25Rust memory types
  4. 8:56Heap memory and allocators
  5. 13:17Custom allocators in Rust
  6. 17:55Building a bump allocator
  7. 21:10Allocator design challenges
  8. 23:22Production allocators overview
  9. 24:27Benchmarking allocator performance
  10. 27:35Concurrent allocator performance
  11. 28:17Large allocation benchmarks
  12. 29:23When to use bump allocators
  13. 30:04Choosing the right allocator
  14. 30:26Performance tricks
~/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.