Advanced Performance Optimizations
This module demonstrates several advanced performance optimizations in C#.
Lesson Preview
We explain delegate types as type-safe method references and cover delegate declaration, instantiation, unicast assignment, and calling syntax. The lesson introduces multicast delegates that point to multiple methods simultaneously and explains their role as the foundation for events and lambdas in C#.
Lessons
- Delegates in C# Preview 4 min
- Demo: Benchmarking Delegates 11 min
- Class Factories in C# 9 min
- Instantiating with Dynamic Methods 10 min
- Demo: Benchmarking Class Instantiation 10 min
- Copying Blocks of Memory 3 min
- Demo: Benchmarking Memory Copy 9 min
- Caching in C# 8 min
- Example: Calculating Fibonacci Numbers 6 min
- Demo: Benchmarking Caching 6 min
- Features of the MemoryCache class 8 min