Introduction
“Before you can make your code faster, you first need to figure out what’s making it slow.”
- profile your code: measure the run-time of each line of code using realistic inputs
- experiment with alternatives to find faster code
- microbenchmark to measure the difference in performance.