Module 17 · Performance, Memory, Debugging and the Interview Output Puzzles
Seven Programs That Measure, Compare and Fix
ProReading
Lesson 01 gave you the habit and Lesson 02 the tools. This lesson is the workshop. Each program here is complete and short, and each one answers a real question by measuring it. Some answers will surprise you, and one of them surprised Kenji.
Checking what this lesson needs for you…
What is inside Seven Programs That Measure, Compare and Fix
- One rule for every program here
- A benchmark helper
- includes against a Set
- shift against a head index
- += against join
- A memo that counts its calls
- A leak and its fix
- The track's numbers in one chart