Skip to main content
Module 7 of 13 7/13

Basic Performance Optimizations

In this module we'll examine some basic performance optimizations.

Lesson Preview

We explain the full cost of a box operation at the IL level including heap allocation, memory zeroing, type descriptor initialization, and reference placement on the stack. The lesson identifies non-generic collection classes in System.Collections as a primary source of hidden boxing in real-world code.