April 2017
Intermediate to advanced
556 pages
11h 5m
English
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.
Lists, dictionaries, and sets are the most popular and useful mutable containers in Python. ...