This is lesson 4 of 5 in this module Course 13% complete

Heap Memory (part 2)

Premium Content

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

The lesson compares raw performance of stack versus heap memory, explains why heap references require a double pointer to enable the runtime to defragment and compact the heap, and introduces the stackalloc keyword for placing arrays on the stack in performance-critical code.