~/talk

Writing Zero-Allocation Code: Optimizing a Large Library

TalkinRussianat DotNext 2020 Moscow · 2020-12-02..12-05· [dotnet]
links:none on file
slides:none on file

This talk examines reducing heap allocations in a large existing .NET codebase by optimizing the SMBLibrary. It explains practical zero-allocation techniques (reuse, pooling, avoiding temporary allocations) to minimize GC pressure and shows how even simple operations can cause heavy allocation costs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:37Memory allocations in SMB Library
  3. 8:55Performance impact tests
  4. 14:36Zero-allocation pooling
  5. 21:00Pooling and async trade-offs
  6. 27:24Advanced pooling techniques
  7. 34:09Refactoring large codebase
  8. 38:50Performance gains results
  9. 43:07Standardizing zero-allocation
  10. 50:16Demo: Zero-allocation LINQ
  11. 53:30Key takeaways
  12. 1:05:43Implementation steps
  13. 1:08:36Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.