From c5dd2af7507bf5dec40b2bce42df945d33195e9f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 25 Oct 2024 21:39:03 -0700 Subject: [PATCH] Added comments [skip ci] --- src/hnswutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hnswutils.c b/src/hnswutils.c index e84561e..7afed25 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -857,6 +857,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in { AddToVisited(base, v, sc->element, inMemory, &found); + /* OK to count elements instead of tuples */ if (tuples != NULL) (*tuples)++; } @@ -889,6 +890,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in else HnswLoadUnvisitedFromDisk(cElement, unvisited, &unvisitedLength, v, index, m, lm, lc); + /* OK to count elements instead of tuples */ if (tuples != NULL) (*tuples) += unvisitedLength;