From f3dba2503695681713d9d1645cd426243b54ff3c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 6 Oct 2023 13:56:25 -0700 Subject: [PATCH] Added comment [skip ci] --- src/hnswutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hnswutils.c b/src/hnswutils.c index e91ddf4..5d4f454 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -1058,6 +1058,8 @@ HnswInsertElement(HnswElement element, HnswElement entryPoint, Relation index, F else lw = w; + /* Candidates are sorted, but set sortCandidates to true */ + /* for in-memory builds to use closer caching */ neighbors = SelectNeighbors(lw, lm, lc, procinfo, collation, element, NULL, NULL, index == NULL); AddConnections(element, neighbors, lm, lc);