Demo: Benchmarking Disposable Objects
The lesson runs a benchmark comparing non-disposable objects whose stopwatch is stopped by the finalizer against disposable objects whose stopwatch is stopped in the Dispose call, showing that an explicit dispose reduces average object lifetime from about 650 milliseconds to under one millisecond.
Previous Module
Memory Performance Optimizations
This Module
Disposing and Finalizing Objects