Skip to content

use safe allocator in hnsw implementation#31

Merged
wxyucs merged 1 commit into
mainfrom
use_safe_allocator_in_hnsw_impl
Sep 18, 2024
Merged

use safe allocator in hnsw implementation#31
wxyucs merged 1 commit into
mainfrom
use_safe_allocator_in_hnsw_impl

Conversation

@wxyucs

@wxyucs wxyucs commented Sep 18, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: wxy407827 <wxy407827@antgroup.com>
@wxyucs
wxyucs requested review from inabao and jiaweizone September 18, 2024 13:19
@wxyucs wxyucs self-assigned this Sep 18, 2024
Comment thread src/index/hnsw.cpp
std::make_shared<hnswlib::HierarchicalNSW>(space.get(),
DEFAULT_MAX_ELEMENT,
allocator,
allocator_,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing changes?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, missing in last commit

Comment thread src/index/hnsw.h
Allocator* allocator = nullptr);

virtual ~HNSW() {
alg_hnsw = nullptr;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alg_hnsw -> alg_hnsw_

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alg_hnsw -> alg_hnsw_

will change in next PR

@jiaweizone jiaweizone left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/index/hnsw.h
Allocator* allocator = nullptr);

virtual ~HNSW() {
alg_hnsw = nullptr;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alg_hnsw -> alg_hnsw_

will change in next PR

@wxyucs
wxyucs merged commit 95734cc into main Sep 18, 2024
@wxyucs
wxyucs deleted the use_safe_allocator_in_hnsw_impl branch September 18, 2024 15:51
wxyucs added a commit that referenced this pull request Sep 18, 2024
Signed-off-by: wxy407827 <wxy407827@antgroup.com>
Roxanne0321 pushed a commit to Roxanne0321/vsag that referenced this pull request Mar 3, 2025
Signed-off-by: wxy407827 <wxy407827@antgroup.com>
LHT129 pushed a commit that referenced this pull request May 11, 2026
Signed-off-by: wxy407827 <wxy407827@antgroup.com>
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Sia-Sheerland pushed a commit to Sia-Sheerland/vsag that referenced this pull request Jun 26, 2026
Signed-off-by: wxy407827 <wxy407827@antgroup.com>
Signed-off-by: Sia Sheerland <x1075956441x@163.com>

Signed-off-by: Sia Sheerland <x1075956441x@163.com>
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.

3 participants