Skip to main content

MAX_INFLIGHT_FETCHES

Constant MAX_INFLIGHT_FETCHES 

Source
pub(super) const MAX_INFLIGHT_FETCHES: usize = 16;
Expand description

Max in-flight git diff -- <path> subprocesses during a scan. macOS’s default soft open-file limit is ~256 and every git child holds stdin/stdout/stderr pipes plus a handful of git internals (~6-10 FDs); firing all N at once on a 100+ file refactor branch trips EMFILE. 16 keeps total well under the FD ceiling while still giving a 16× speedup over a sequential loop.