Make Long-Lived Objects Large
The lesson shows how small objects that grow over time can end up being misclassified by the garbage collector, and explains how pre-sizing a list with an explicit capacity forces the runtime to allocate it directly on the large object heap, avoiding costly generation promotions.
Previous Module
The .NET Garbage Collector
This Module
Memory Performance Optimizations