Skip to main content
Module 10 of 13 10/13

Memory Performance Optimizations

In this module, we'll cover several memory performance optimizations for C# code.

Lesson Preview

We introduce a memory performance optimization for generation 0: allocate, use, and discard objects as quickly as possible so they die in generation 0 rather than migrate to generation 1 or 2. The lesson covers reducing unnecessary object creation and scoping references tightly so objects are automatically de-referenced when no longer needed.