Forcing Lower Precision
The columns with the floating-point numbers are 64-bit floats, so each number of this
float64 type consumes 64 bits, which is 8 bytes. Each column has 20 numbers, and therefore requires 160 bytes.
This is half the size of the 480 bytes you’d need with
float64 numbers. In addition to saving memory, you can significantly reduce the time required to process data by using
float32 instead of
float64 in some cases.
Become a Member to join the conversation.