01Chapter 1: Why you measure before you optimizeYou should be able to write and run Python functions, loops, and modules. You should also know basic lists, dictionaries, and sets, and be comfortable running scripts from a terminal.1 min read
02Chapter 2: Fixing the algorithm and the data structure firstAssume you can write Python functions, loops, and modules, use lists, dictionaries, and sets, and run scripts from a terminal. Before changing syntax, measure the slow operation and define a target, such as “process 100,000 records in under one second.”1 min read
03Chapter 3: Finding memory hogs with tracemallocAssume you can write Python functions, use lists and sets, run scripts from a terminal, and install packages with pip. First measure the resource that is slow: memory, CPU time, or waiting time.2 min read