Skip to main content

STATUS_SCAN_MAX_THREADS

Constant STATUS_SCAN_MAX_THREADS 

Source
pub const STATUS_SCAN_MAX_THREADS: usize = 32;
Expand description

Ceiling on the threads devp status uses to size repositories.

The scan is one independent file-system walk per repository, so it is bound by the disk rather than the CPU and oversubscribing the cores is what makes it fast. The ceiling exists anyway: past this point a spinning disk spends its time seeking between trees instead of reading them, and a laptop under a background pass should still be usable.