Skip to content

[ENH]: Don't resize during hnsw load#39

Merged
sanketkedia merged 2 commits into
masterfrom
reduce_default_max
Aug 28, 2025
Merged

[ENH]: Don't resize during hnsw load#39
sanketkedia merged 2 commits into
masterfrom
reduce_default_max

Conversation

@sanketkedia
Copy link
Copy Markdown

@sanketkedia sanketkedia commented Aug 27, 2025

hnsw load api allows for specifying an optional max_elements. The user can set this if they want to resize their index from what it was before. In our case, we let the caller take care of resize responsibility as they add points and so we don't need this feature during load. Hence disabling it by passing in a 0. See the first example in the readme at https://github.com/nmslib/hnswlib to understand its usage.

@sanketkedia sanketkedia changed the title [ENH]: Ask caller for default max elements during hnsw load [ENH]: Don't resize during hnsw load Aug 27, 2025
@sanketkedia sanketkedia merged commit 581f689 into master Aug 28, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants