Demo: Benchmarking Arrays (part 2)
In this lesson we inspect the benchmark DLL to confirm that the 1D array uses stelem directly, the 2D array calls Array.Set, and the jagged array chains ldelem and stelem, exactly as expected. We also inspects the flattened array path to show that the intermediate language multiply-and-add instructions for index calculation are far cheaper than the Array.Set call.
Previous Module
Basic Performance Optimizations
This Module
Array Performance Optimizations