Skip to content

Commit

Permalink
remove hard code param
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 committed Nov 6, 2023
1 parent f2836e5 commit 73bcf4e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ Index<T, TagT, LabelT>::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 <typename T, typename TagT, typename LabelT>
Expand Down

0 comments on commit 73bcf4e

Please sign in to comment.