This is lesson 4 of 12 in this module Course 85% complete

Jagged Arrays in Intermediate Language

Premium Content

Sign in with your account or join us to access this lesson.

We demonstrate that jagged arrays compile into sequences of ldelem and stelem instructions, the same fast opcodes used for 1D arrays, making them faster than two-dimensional arrays despite their verbose syntax. The lesson also introduces array flattening as a technique of replacing a 2D array with a 1D array using a manual offset calculation.