From 73bcf4eef418d6b89e5ca478a4ebed0c00687f5c Mon Sep 17 00:00:00 2001 From: Sanhaoji2 Date: Sun, 5 Nov 2023 18:54:04 -0800 Subject: [PATCH] remove hard code param --- src/index.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index e7c9fefae..58ad975ec 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -139,14 +139,14 @@ Index::Index(Metric m, const size_t dim, const size_t max_point _indexingAlpha = 1.2f; _indexingRange = 60; - if (_query_scratch.size() == 0) - { - _indexingQueueSize = 200; - std::uint32_t num_threads = 42; - _max_range_of_loaded_graph = 60; - initialize_query_scratch(num_threads, _indexingQueueSize, _indexingQueueSize, (uint32_t)_max_range_of_loaded_graph, _indexingMaxC, - _dim, _bitmask_buf._bitmask_size); - } + //if (_query_scratch.size() == 0) + //{ + // _indexingQueueSize = 200; + // std::uint32_t num_threads = 42; + // _max_range_of_loaded_graph = 60; + // initialize_query_scratch(num_threads, _indexingQueueSize, _indexingQueueSize, (uint32_t)_max_range_of_loaded_graph, _indexingMaxC, + // _dim, _bitmask_buf._bitmask_size); + //} } template