Demo: Optimizing Gen:0 Allocations
We runs an optimized version of the Pig-Latinifier that works with char values instead of single-character strings, dropping generation 0 allocations from 187 to 19. The lesson also discusses optimizing the app further with character arrays, avoiding intermediate strings entirely.
Previous Module
The .NET Garbage Collector
This Module
Memory Performance Optimizations