~/talk

Let’s refresh our memory! Memory management in .NET.

Talkat .NET Fest 2018 · on Monday, 2018-10-29· [security]
slides:none on file

Claim: gen2 collections sometimes pause apps for seconds to minutes; the large object heap is not compacted by default and can produce misleading OOMs. Demos show that calling Dispose prevents objects landing in the finalizer queue (saving an extra GC cycle), switching from full-string JSON loads to streaming plus reuse flattens memory, and using ClrMD invasive attach lets code enumerate heap objects, find retention paths, and count surprising string duplicates. Tools: IL, profilers, ArrayPool, CLRMD.

AI-written summary · about

  1. 0:00Intro
  2. 1:08NET runtime
  3. 1:48Memory management and GC
  4. 2:46NET memory management 101
  5. 7:00The .NET garbage collector
  6. 10:47Helping the GC, avoid pauses
  7. 17:27When is memory allocated?
  8. 18:17Hidden allocations!
  9. 24:24Measure!
  10. 32:43Object pools / object re-use
  11. 33:36Garbage Collector summary
  12. 34:18How would you...
  13. 35:38Stuff on the Stack
  14. 35:56Stuff on the Managed Heap
  15. 36:24Theory is nice...
  16. 46:37Conclusion
~/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.