Chapter 4. Designing for high performance
This chapter covers
- Understanding time and space complexity
- Measuring the complexity of your code
- Choosing data types for different activities in Python
Once you’ve written working code, there’s usually additional work to do. You need your code to not only accomplish its task, but also to accomplish it quickly. The performance of your code is how well it utilizes resources like memory and time. Software that performs at an acceptable level, meaning that it utilizes resources efficiently and responds to tasks within a desirable time frame, is said to be performant.
Software performance affects real-world people every day, whether they’re trying to upload their latest selfies to Instagram or doing real-time ...
Get Practices of the Python Pro now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.