~/talk

Turbocharged: Writing High-performance C# and .NET code

Talkat JetBrains .NET Days Online 2021 · 2021-05-11..05-12· [dotnet]
slides:none on file

Shows concrete wins: microbenchmarks with Benchmark.NET drop a key-builder from ~1000 ns to ~400 ns and cut allocations ~6x, saving roughly 17 GB/day on an 18M‑message service; CSV ingest drops from 8.5 s to <1 s and allocations from 7.2 GB to 242 MB (30x), using pipelines and span parsing; JSON happy path short‑circuits to ~485 ns with near‑zero allocations using low‑level UTF‑8 reader. Uses Span<T> with stackalloc under 256 chars, rents via ArrayPool, and opts into System.Text.Json for low‑allocation parsing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:21What we will cover
  3. 2:18Aspects of performance
  4. 11:46Benchmark.NET
  5. 16:36Span of T
  6. 29:35Memory of T
  7. 31:00Practical Example: Key Builder
  8. 36:50Array Pool
  9. 39:14Pipelines
  10. 41:52Practical Example: CSV File Parsing
  11. 46:19System.Text.Json
  12. 47:59Practical Example: JSON Parsing
  13. 55:03Business Buy-In
  14. 59:12Summary
  15. 1:01:41Q&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.