From: knizhnik (@knizhnik) <noreply+knizhnik@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #282: Hnsw iterator
Date: Sat, 30 Sep 2023 04:54:18 +0000
Message-ID: <gh-pgvector-pgvector-282-rc1341910784@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-282-rc1341132985@github.com>
References: <gh-pgvector-pgvector-282@github.com>
<gh-pgvector-pgvector-282-rc1341132985@github.com>
(on src/hnswutils.c:624)
> I took that other approach: I split W into three separate heaps:
Yes, I also thought about it but considered that `pairingheap_nth` is more obvious approach is simpler to implement.
> GetCandidate(): It kept the search going on all levels simultaneously,
No, in my case it also performs search at one layer. It is `GetCandidate` which perform recursive traversal of all layers.