Add a comment on core worker threads

This commit is contained in:
James Wilson
2021-08-06 17:50:50 +01:00
parent 8017d8b00f
commit 9c001bdcfd
+2
View File
@@ -78,6 +78,8 @@ fn main() {
let worker_threads = match opts.worker_threads {
Some(0) => num_cpus::get(),
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),
};