Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmap support diskload index
Browse files Browse the repository at this point in the history
Signed-off-by: xianliang <xianliang.li@zilliz.com>
foxspy committed Nov 29, 2023
1 parent 58c215d commit c6f774f
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/benchmark_base.h
Original file line number Diff line number Diff line change
@@ -188,10 +188,10 @@ class Benchmark_base {
void
free_all() {
if (xb_ != nullptr) {
delete[](float*) xb_;
delete[] (float*)xb_;
}
if (xq_ != nullptr) {
delete[](float*) xq_;
delete[] (float*)xq_;
}
if (gt_radius_ != nullptr) {
delete[] gt_radius_;
1 change: 1 addition & 0 deletions include/knowhere/config.h
Original file line number Diff line number Diff line change
@@ -564,6 +564,7 @@ class BaseConfig : public Config {
KNOWHERE_CONFIG_DECLARE_FIELD(enable_mmap)
.set_default(false)
.description("enable mmap for load index")
.for_deserialize()
.for_deserialize_from_file();
KNOWHERE_CONFIG_DECLARE_FIELD(for_tuning).set_default(false).description("for tuning").for_search();
}

0 comments on commit c6f774f

Please sign in to comment.