mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-18 20:11:01 +00:00
Add a comment on core worker threads
This commit is contained in:
@@ -78,6 +78,8 @@ fn main() {
|
|||||||
let worker_threads = match opts.worker_threads {
|
let worker_threads = match opts.worker_threads {
|
||||||
Some(0) => num_cpus::get(),
|
Some(0) => num_cpus::get(),
|
||||||
Some(n) => n,
|
Some(n) => n,
|
||||||
|
// By default, use a max of 8 worker threads, as perf
|
||||||
|
// testing has found that to be a good sweet spot.
|
||||||
None => usize::min(num_cpus::get(), 8),
|
None => usize::min(num_cpus::get(), 8),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user