Skip to content

Commit 151ef5a

Browse files
committed
lintcheck: use all threads when using default parallel mode
It makes little sense to restrict ourselves to physical threads, especially when, in modern architectures, cores with multiple threads are often faster (performance) while cores with a unique threads are often slower (efficient).
1 parent d7f1973 commit 151ef5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lintcheck/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ impl LintcheckConfig {
4949
if config.markdown { "md" } else { "txt" }
5050
));
5151

52-
// look at the --threads arg, if 0 is passed, use the physical core count
52+
// look at the --threads arg, if 0 is passed, use the threads count
5353
if config.max_jobs == 0 {
5454
// automatic choice
55-
config.max_jobs = num_cpus::get_physical();
55+
config.max_jobs = num_cpus::get();
5656
};
5757

5858
for lint_name in &mut config.lint_filter {

0 commit comments

Comments
 (0)