A program that is fast for ten items can be hopeless for ten million. Whether it is depends less on how clever the code is than on how the amount of work grows with the size of the input. That growth rate is the complexity, written in big-O notation, and it is the most valuable performance idea there is. This lesson teaches you to count work instead of guessing, and shows the costs of the data structures you use every day.
More lessons in Complete Python Programming