Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9d68a0

Browse files
committed
Simplified HnswLoadUnvisitedFromMemory [skip ci]
1 parent4f8ab57 commitf9d68a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/hnswutils.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,13 +749,12 @@ HnswLoadUnvisitedFromMemory(char *base, HnswElement element, HnswUnvisited * unv
749749
LWLockAcquire(&element->lock,LW_SHARED);
750750
memcpy(neighborhoodData,neighborhood,neighborhoodSize);
751751
LWLockRelease(&element->lock);
752-
neighborhood=neighborhoodData;
753752

754753
*unvisitedLength=0;
755754

756-
for (inti=0;i<neighborhood->length;i++)
755+
for (inti=0;i<neighborhoodData->length;i++)
757756
{
758-
HnswCandidate*hc=&neighborhood->items[i];
757+
HnswCandidate*hc=&neighborhoodData->items[i];
759758
boolfound;
760759

761760
AddToVisited(base,v,hc->element,NULL,&found);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp