未验证 提交 5316743a 编写于 作者: Z zhenshan.cao 提交者: GitHub

Reduce memory usage of scalar index (#21970)

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 6d05f102
......@@ -44,6 +44,6 @@ struct IndexStructure {
return a_ == b.a_;
}
T a_;
size_t idx_;
int32_t idx_;
};
} // namespace milvus::index
......@@ -81,7 +81,7 @@ class ScalarIndexSort : public ScalarIndex<T> {
private:
bool is_built_;
Config config_;
std::vector<size_t> idx_to_offsets_; // used to retrieve.
std::vector<int32_t> idx_to_offsets_; // used to retrieve.
std::vector<IndexStructure<T>> data_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册