Vladimir

2%
Flag icon
On a 64-bit Python build, each of those fields takes 8 bytes. That’s why an array of floats is much more compact than a tuple of floats: the array is a single object holding the raw values of the floats, while the tuple consists of several objects—the tuple itself and each float object contained in it.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview