~/talk

Performance tricks I learned from contributing to the Azure .NET SDK

Talkat NDC Porto 2023 · 2023-10-16..10-20· [web-performance]
slides:none on file

Contributor to the Azure .NET SDK documents over seventy pull requests that target hot-path C# code and shows concrete fixes: replace LINQ.Any with loops, remove closure allocations, rent with ArrayPool, use stackalloc + Span<byte> and BenchmarkDotNet + profilers to validate. Small changes yield measurable wins: 20–40% throughput and GC reduction for Any→loop, a 74–78% throughput lift after removing closure allocations, and 8% publish / 3–4% ingest gains in Event Hubs; changes ship after telemetry and profiling confirm them.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:06Performance at scale
  3. 6:17Avoiding excessive allocations
  4. 10:35Optimizing LINQ-based code
  5. 14:52Collection-based optimizations
  6. 23:32Closure allocations
  7. 27:39Buffer pooling and reuse
  8. 36:58Stack allocation benefits
  9. 40:49Memory manipulation with Span
  10. 45:24Partition key algorithm case
  11. 55:12Summary and final tips
  12. 58:24Q&A and closing
~/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.