Python: How fast are Dicts vs Lists?
So, you have a list of objects with IDs, and you need to find an object by its id. How do you keep your objects? In a list or in a dict?
Though this is obvious for experienced developers, it may not be so clear why dicts perform better.
This is another experiment for those who learn to program in Python.