You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(hnsw): deduplicate neighbor updates and fix error handling in insertHelper
Deduplicate addNeighbors calls by iterating over inboundEdgesAllLayersMap keys
instead of nnUidArray, which could contain duplicate UIDs when the same neighbor
appears across multiple layers. Also fix two bugs: (1) err from addNeighbors for
the inserted node was checked after the neighbor loop instead of immediately,
and (2) searchPersistentLayer errors were silently swallowed by returning the
uninitialized layerErr variable instead of err.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
0 commit comments