fd icon indicating copy to clipboard operation
fd copied to clipboard

--threads help text omits the 64-thread default cap

Open ump45nose opened this issue 1 month ago • 0 comments

The -j/--threads help text in src/cli.rs says the default is the number of available CPU cores, but default_num_threads() actually returns min(available_parallelism(), 64) — it is capped at 64 to limit startup overhead on very large machines (see the comment above let limit in src/cli.rs).

So on a machine with more than 64 logical cores the real default is 64, not the full core count. This is just a small accuracy gap in the help text. I have a one-line doc fix ready and will open a PR referencing this issue.

ump45nose avatar Oct 22 '26 06:10 ump45nose