~/talk

Turbocharged: Writing High-Performance C# and .NET Code

Talkat NDC Oslo 2024 · 2024-06-10..06-14· [web-performance]
slides:none on file

Demos and microbenchmarks show concrete wins: using Span<T> slicing cuts a return-copy to sub-nanoseconds, changing string building to span-based writes yields ~26% faster and ~74% fewer bytes allocated, and reworking CSV/S3 processing with pipelines and sequence readers drops ~97% of memory allocations (example: 18M messages/day → ~10GB fewer allocations). Tools used include BenchmarkDotNet, Visual Studio profilers and JetBrains tracing; patterns shown are ArrayPool.Rent/Return and low-level JSON via Utf8JsonReader for near-zero-allocation parsing.

AI-written summary · about

  1. 0:00Introduction
  2. 5:03Performance in .NET
  3. 10:22Benchmarking tools
  4. 15:58Optimizing with Span<T>
  5. 29:20Span<T> optimization example
  6. 37:02ArrayPool<T> for allocations
  7. 40:54Streaming with System.IO.Pipelines
  8. 44:12File processing optimization
  9. 50:48High-performance JSON
  10. 58:52JSON improvements benchmark
  11. 1:01:16Summary
~/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.