Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a pragmatic approach to performance optimization in this 57-minute conference talk from NDC Conferences. Learn when to prioritize performance, how to correctly benchmark .NET code, and discover common and lesser-known performance pitfalls in the .NET Framework. Gain insights into the true meaning behind "premature optimization is the root of all evil" and understand the coding tradeoffs involved. Dive into topics such as aggregate methods, benchmarking techniques, string concatenation, dictionary usage, interfaces, loops vs. LINQ, and measuring the right metrics. Acquire practical knowledge on writing effective benchmarks, understanding slow benchmarks, and leveraging tools like BenchmarkDotNet. Conclude with a discussion on the Open to Anything approach and the concept of Hybrid Dictionary to enhance your performance optimization skills.
Syllabus
Introduction
Premature optimization
Coding tradeoffs
How does perf work
Aggregate method
Benchmarking Dotnet
How it works
Slow benchmarks
Writing a benchmark
Benchmarking
Simple benchmark
String concatenation
Dictionary
Dictionary vs IDictionary
Interfaces
Loops vs Link
Measuring the right thing
Lower invariant
Dotnet Framework
Open to anything
Hybrid Dictionary
Summary
Taught by
NDC Conferences