Skip to main content
This is lesson 4 of 6 in this module Course 7% complete

Heap Memory (part 2)

Premium Content

Sign in with your account or sign up 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.