microsoft / DiskANN

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

Ensure dist_scratch has enough space for writing out distances #579

Open ghost-pep opened 3 months ago

ghost-pep commented 3 months 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