Remove redundant threadpools in sigverify (#7888)
* Limit the number of thread pools sigverify creates * Name local threadpools
This commit is contained in:
@@ -26,6 +26,7 @@ use std::{cmp, thread};
|
||||
|
||||
thread_local!(static PAR_THREAD_POOL: RefCell<ThreadPool> = RefCell::new(rayon::ThreadPoolBuilder::new()
|
||||
.num_threads(get_thread_count())
|
||||
.thread_name(|ix| format!("entry_{}", ix))
|
||||
.build()
|
||||
.unwrap()));
|
||||
|
||||
|
Reference in New Issue
Block a user