From e6268ec57d4e3342a3496e8f4d89135ce9a1b11f Mon Sep 17 00:00:00 2001 From: Sanhaoji2 <jegao@microsoft.com> Date: Sat, 4 Nov 2023 18:37:47 +0800 Subject: [PATCH] hard code more params --- src/index.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.cpp b/src/index.cpp index 3e1e33efb..058acfc9e 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -138,6 +138,14 @@ Index<T, TagT, LabelT>::Index(Metric m, const size_t dim, const size_t max_point // add missing param _indexingAlpha = 1.2f; _indexingRange = 60; + + if (_query_scratch.size() == 0) + { + _indexingQueueSize = 200; + std::uint32_t num_threads = 42; + initialize_query_scratch(num_threads, _indexingQueueSize, _indexingQueueSize, (uint32_t)_max_range_of_loaded_graph, _indexingMaxC, + _dim, _bitmask_buf._bitmask_size); + } } template <typename T, typename TagT, typename LabelT>