Garbage Collection and Data Compression
A garbage collector frees heap memory for you; Huffman coding builds the smallest codes for the most common letters.
What this unit covers
Unit 6: Runtime Storage, Compression and Synthesis
- 1 Runtime Storage: Stack, Heap and LifetimeStack memory is freed for you and heap memory is not, and almost every memory bug comes from mixing up which is which. · 12 min
- 2 Garbage Collection and Data CompressionA garbage collector frees heap memory for you; Huffman coding builds the smallest codes for the most common letters. · 14 min
- 3 Choosing a Structure — Full-Course SynthesisThe right structure is the one whose expensive operation is the one you do least. · 14 min