Skip to content

Commit ab378b0

Browse files
Reduce maximum thread-local storage maps from 4 to 2 for improved memory efficiency
1 parent 6a539c3 commit ab378b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subcommand/similarity_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ int main_similarity(int argc, char** argv) {
283283
}
284284

285285
// Use limited thread-local storage to balance speed and memory usage
286-
const uint64_t max_local_maps = std::min(4UL, num_threads);
286+
const uint64_t max_local_maps = std::min(2UL, num_threads);
287287
std::vector<ska::flat_hash_map<uint64_t, uint64_t>> thread_local_maps(max_local_maps);
288288
std::vector<std::mutex> map_mutexes(max_local_maps);
289289

0 commit comments

Comments
 (0)