Pragmatic Performance - When to Care About Perf, and What to Do About It
Offered By: NDC Conferences via YouTube
Course Description
Overview
Explore a pragmatic approach to performance optimization in this 43-minute conference talk. Learn when to prioritize performance, how to correctly benchmark .NET code, and discover common performance pitfalls in the .NET Framework. Gain insights into the true meaning behind the phrase "premature optimization is the root of all evil" and understand the importance of context in coding decisions. Dive into practical demonstrations using BenchmarkDotNet, comparing various coding techniques such as loops vs LINQ, and Substring vs Span. Discover how to make informed decisions about performance improvements based on trustworthy benchmarking results. Walk away with a balanced understanding of when to focus on performance and how to effectively optimize your code.
Syllabus
Introduction
Premature optimization
Donald Knuth
Debugging and maintenance
Coding is about tradeoffs
Know the context
Code Profiling
Benchmarknet
Demo
Writing a benchmark
Baseline
Benchmarks
Results
Whats more important
Dictionary benchmarks
Coding standards
Loops vs Link
Link has other benefits
Substring vs Span
Span vs substring
Swapping out components
The perfect performance story
Summary
Taught by
NDC Conferences
Related Courses
Software as a ServiceUniversity of California, Berkeley via Coursera Software Testing
University of Utah via Udacity The Hardware/Software Interface
University of Washington via Coursera Software Debugging
Saarland University via Udacity Introduction to Systematic Program Design - Part 1
The University of British Columbia via Coursera