Explore a comprehensive conference talk from NDC Porto 2024 where Callum Whyte delves into the hidden inefficiencies in C# development and how to overcome them. Learn about common pitfalls that impact performance and stability, especially at scale, while gaining insights into what happens under the hood of C# code. The presentation covers critical topics including enumeration problems, deferred execution misuse, casting and boxing overhead, string concatenation inefficiencies, proper management of statics and object disposal, and techniques for reducing allocations. Discover how commonly used methods like ToList() and ToArray() work internally and why their misuse alongside LINQ can create serious performance issues. Gain practical knowledge about diagnosing and fixing performance problems using tools available within Visual Studio, external solutions like DotTrace and ANTS Profiler, open-source options such as BenchmarkDotNet, and cloud-based monitoring with Application Insights. The talk also addresses process improvements to prevent performance issues, including how to measure and track optimizations as part of development cycles and strategies for convincing teams to prioritize performance alongside feature development.
Overview
Syllabus
Writing (in)efficient C# - Callum Whyte - NDC Porto 2024
Taught by
NDC Conferences