A conference talk transcript covering practical .NET application performance optimization. The speaker walks through a data-driven performance engineering loop: observing production systems, identifying bottlenecks via CPU and memory profiling (using JetBrains dotTrace/dotMemory), writing benchmarks with BenchmarkDotNet, making small targeted code changes, and validating results. A real-world demo uses an OpenTelemetry SQL statement processor, demonstrating optimizations including pre-sizing StringBuilders, reusing shared StringBuilders with lock-free atomic operations, replacing Hashtable with ConcurrentDictionary to eliminate boxing, using Span-based APIs to avoid substring allocations, and switching to ArrayPool with ref structs to eliminate heap allocations entirely. The talk also covers sustainable performance engineering practices: setting SLOs, avoiding premature optimization, documenting performance-sensitive code, and tracking benchmark results across commits.

1h 2m watch time

Sort: