mirror of
https://github.com/vacp2p/pmtree.git
synced 2025-02-26 14:10:38 +00:00
chore: change number of threads used for rayon
This commit is contained in:
parent
6a1b5836b8
commit
0a456cf697
@ -217,7 +217,7 @@ where
|
|||||||
let subtree = Arc::new(RwLock::new(subtree));
|
let subtree = Arc::new(RwLock::new(subtree));
|
||||||
|
|
||||||
let root_val = rayon::ThreadPoolBuilder::new()
|
let root_val = rayon::ThreadPoolBuilder::new()
|
||||||
.num_threads(8)
|
.num_threads(rayon::current_num_threads())
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.install(|| Self::batch_recalculate(root_key, Arc::clone(&subtree), self.depth));
|
.install(|| Self::batch_recalculate(root_key, Arc::clone(&subtree), self.depth));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user