~/talk

Performance tricks I learned from contributing to open source .NET packages

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [dotnet]
slides:none on file

Contributions to the Azure .NET SDK drive concrete wins: 80+ PRs applied various micro‑optimisations that cut GC and raised throughput — replacing LINQ/Any with loops yields 20–40% fewer GCs and 20–40% more throughput, a collection‑based refactor adds up to 5–64% extra throughput and 23–61% GC reduction, removing closure allocations and switching to ValueTask patterns improves a pipeline by 74–78%, and a span/stackalloc + ArrayPool partition‑hash rewrite gains 38–47%; use BenchmarkDotNet and allocation tools (Rider/VS) to measure.

AI-written summary · about

  1. 0:00Performance optimizations in .NET
  2. 2:13Focus on C# and .NET
  3. 7:32Reducing GC overhead
  4. 21:14Avoiding lambda allocations
  5. 31:06Buffer pooling efficiently
  6. 39:52Span for memory copying
  7. 53:20Applying optimizations
  8. 57:38Q&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.