hnswlib icon indicating copy to clipboard operation
hnswlib copied to clipboard

Replace deleted elements at addition

Open dyashuni opened this issue 1 year ago • 0 comments

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.

dyashuni avatar Sep 20 '22 06:09 dyashuni