Vladimir

11%
Flag icon
Despite its new compact layout, dicts inevitably have a significant memory overhead. The most compact internal data structure for a container would be an array of pointers to the items.8 Compared to that, a hash table needs to store more data per entry, and Python needs to keep at least one-third of the hash table rows empty to remain efficient.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview