Vladimir

11%
Flag icon
Item access by key is very fast. A dict may have millions of keys, but Python can locate a key directly by computing the hash code of the key and deriving an index offset into the hash table, with the possible overhead of a small number of tries to find a matching entry.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview