microsoft / DiskANN

Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search
Other
1.06k stars 214 forks source link

Ensure dist_scratch has enough space for writing out distances #579

Open ghost-pep opened 1 month ago

ghost-pep commented 1 month ago

Reference Issues/PRs

None

What does this implement/fix? Briefly explain your changes.

This PR resizes the dist_scratch vector to have the same size as the id_scratch vector which is a needed pre-allocation for the writing of distances during index building time

Any other comments?

None