hnswlib
hnswlib copied to clipboard
Replace deleted elements at addition
Added a new method to replace a deleted element when a new one is added:
labeltype insertPoint(const void* data_point, labeltype label)
The method is the same as addPoint
but allows to replace a deleted element with a new one to save memory. Note: insertPoint is much slower than addPoint, because replacement is a heavy operation.