chore: change number of threads used for rayon

This commit is contained in:
Magamedrasul Ibragimov 2023-02-08 19:01:23 +04:00
parent 6a1b5836b8
commit 0a456cf697
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ where
let subtree = Arc::new(RwLock::new(subtree));
let root_val = rayon::ThreadPoolBuilder::new()
.num_threads(8)
.num_threads(rayon::current_num_threads())
.build()
.unwrap()
.install(|| Self::batch_recalculate(root_key, Arc::clone(&subtree), self.depth));