Skip to main content
This is lesson 13 of 15 in this module 13/15

Object Lifetime Recap

We summarize object-lifetime optimization strategies: limiting generation-zero allocations, freely using small short-lived objects, applying object pooling for large objects, and using Benchmark.NET with the MemoryDiagnoser attribute to measure heap allocations accurately.

Video lesson

Want to watch this lesson?

This lesson is part of the study plan. Get instant access to all lectures, labs and practice exams.

Get the Study Plan