Improved performance of HNSW index builds - closes #292

Co-authored-by: Heikki Linnakangas <heikki.linnakangas@iki.fi>
This commit is contained in:
Andrew Kane
2023-10-05 13:21:26 -07:00
parent 6e1312ddbe
commit a713e2acaa
3 changed files with 34 additions and 6 deletions

View File

@@ -112,11 +112,13 @@ typedef struct HnswCandidate
{
HnswElement element;
float distance;
bool closer;
} HnswCandidate;
typedef struct HnswNeighborArray
{
int length;
bool closerSet;
HnswCandidate *items;
} HnswNeighborArray;