Programming for performance – data structures
We've looked at the definition of performance, measuring performance complexity, and the different tools for measuring program performance. We've also gained insights by profiling code for statistics, memory usage, and so on.
We also saw a couple of examples of program optimization to improve the time performance of the code.
In this section, we will take a look at common Python data structures and discuss what their best and worst performance scenarios are and also discuss some situations of where they are an ideal fit and where they may not be the best choice.
Mutable containers – lists, dictionaries, and sets
Lists, dictionaries, and sets are the most popular and useful mutable containers in Python. ...
Get Software Architecture with Python 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.