Skip to content

Commit

Permalink
use many chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmudhera committed Nov 16, 2024
1 parent 8a7c132 commit c10e498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void compute_index_from_sketches_one_chunk( int sketch_index_start, int sketch_i
void compute_index_from_sketches(std::vector<std::vector<hash_t>>& sketches, std::unordered_map<hash_t, std::vector<int>>& hash_index, const int num_threads) {

// create mutexes
int num_unordered_maps = 1024;
int num_unordered_maps = 100000;
std::mutex * mutex_list = new std::mutex[num_unordered_maps];
std::vector<std::unordered_map<hash_t, std::vector<int>>> hash_index_chunks(num_unordered_maps);

Expand Down

0 comments on commit c10e498

Please sign in to comment.