`HilbertCurve.toIndex(...)` allocates too much memory
normen662 opened this issue · 2 comments
normen662 commented
In line
b
is allocated with the size of length
although if I am not mistaken, length
is the number of bits -- not bytes. Sorry if this is incorrect! Just starting with the code...
davidmoten commented
Very nice catch, thanks! It does look like we should only need approximately length/8 bytes. Should improve benchmarks, we'll see.
davidmoten commented