From de6e6e4a8af3fd5d6f8c1fbe6c249f0db2d8ff4a Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Thu, 5 Oct 2023 14:50:54 +0530 Subject: [PATCH] Restore concurrent vec indexing. --- src/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.cpp b/src/index.cpp index 3b3daea6..5059fd8d 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -841,7 +841,7 @@ void Index::index_field_in_memory(const field& afield, std::vector vec_index->resizeIndex((curr_ele_count + iter_batch.size()) * 1.3); } - const size_t num_threads = 1; //std::min(4, iter_batch.size()); + const size_t num_threads = std::min(4, iter_batch.size()); const size_t window_size = (num_threads == 0) ? 0 : (iter_batch.size() + num_threads - 1) / num_threads; // rounds up size_t num_processed = 0;