~/talk

Pragmatic memory management

Talkat DotNext 2019 Moscow · 2019-11-06..11-07· [dotnet]
links:none on file
slides:none on file

Argues that most memory hacks cost far more than they save and gives concrete measurements: raw byte copy loops run about 32 bytes register efficient code versus about 16–32× slower for naive per‑byte loops, pushing optimized allocation into real wins of only about 10% throughput gain in a web request scenario. Shows GC behavior flips when buffers cross the 85 KB LOH threshold, Gen2 work jumps ~10×, minimum object overhead is 24 B minimum object size, and recommends profiling, simple pools, and adding RAM before complex rewrites.

AI-written summary · about

  1. 0:00Introduction
  2. 7:17Engineering memory approach
  3. 11:10Allocations optimization
  4. 21:28Performance testing
  5. 27:49Garbage collector myths
  6. 34:56Large objects and LOH
  7. 43:24When to help GC
  8. 51:35Memory vs optimization
  9. 57:21Q&A
~/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.