Performance, Profiling and Optimisation
summary
Start with production metrics (Prometheus and Grafana or DataDog), run a profiler in release build and simulate real traffic for 30+ seconds, then follow the smoking gun: a sample shows string concatenation dominating time, and a different run shows memory allocation at 72% when exceptions spike. Use stack dumps to find thread locks, avoid blind guesses, prefer async/await and framework code, validate fixes with benchmark.net, dig into low‑level traces with perfview, and rehearse load scenarios with nbomber.
AI-written summary · about
chapters (26)
- 0:00Introduction and speaker background
- 1:52Common performance bottlenecks
- 3:18Identifying slow parts in code
- 5:02Using production stats for diagnostics
- 7:47Likely culprits of slow performance
- 9:31Profiling tools and techniques
- 12:24Why not to guess performance issues
- 13:28Profiling tips and best practices
- 15:30Instrumentation and memory analysis
- 17:38Advanced tools like PerfView
- 19:06.NET counters and monitoring
- 20:09Taking memory dumps for debugging
- 21:56Best practices and articles to follow
- 23:42Techniques to fix performance issues
- 25:26Understanding reflection and its costs
- 26:50Async and await for performance
- 28:34Proving fixes with benchmarking
- 30:20Caching trade-offs and considerations
- 32:10Testing caching strategies
- 33:13Multi-threading and parallel processing
- 34:35Async awaits recap and JetBrains profiler
- 35:18Scaling up vs. scaling out
- 36:24Background tasks with Hangfire
- 37:45Optimization goals and trade-offs
- 38:26Load testing vs. profiling
- 39:50Load testing tools and tips
