Slow memory allocation and fragmentation occurs in `getInterpolatedData()`
DLiblik opened this issue · 2 comments
DLiblik commented
getInterpolatedData()
allocates its output array one index at a time, resulting in fragmentation and slow performance. This can be fixed by pre-allocating the output array. I did this in PR #11
DLiblik commented
For more evidence of how much faster pre-declaring the array size is, please see:
rii-mango commented
Nice, fixed. Thanks for your great additions.