crvs / KDTree

Simple C++ KD-Tree implementation
BSD 3-Clause "New" or "Revised" License
188 stars 71 forks source link

4x speed improvement #9

Closed walaj closed 4 months ago

walaj commented 1 year ago

Simple fix to pass nbh vector across neighborhood_ calls rather than build new and transfer within each function. Saves a lot of unnecessary vector creation/destruction. Identical output, ~4x speed improvement (29m vs 6m on my use-case).

crvs commented 4 months ago

sorry for the delay