GC Memory Layout Strategies
We show how arrays of reference types force millions of small heap objects to migrate through three generations, and why replacing classes with structs collapses them into a single in-line array object on the large object heap. The lesson also briefly previews the finalizer pattern and why finalizers are nearly never needed in practice.
Previous Module
Array Performance Optimizations
This Module
The .NET Garbage Collector