float16
float16 copied to clipboard
Float16Array lookups appear to be much less performant compared to Float32Array lookups
Hi, I am using your library in hopes to cut down on memory consumption in my application. I have an array of floats with ~15 million entries, and I have found array lookups to be much slower since converting my Float32Array data type into a Float16Array.
I am trying to figure out if I am doing something incorrectly or if a performance hit is expected on lookups of an array of such a large size. Float16.js get()
method is taking lots of time on my performance scans.
float_16_arr[i]; // much slower
float_32_arr[i]; // much faster
Thank you!