Skip to main content

SCAN_LIMIT

Constant SCAN_LIMIT 

Source
pub const SCAN_LIMIT: usize = 10_000;
Expand description

How many first-parent commits a walk may cover while filling its window.

A bound rather than the whole history because rev-list output is held in memory and a monorepo trunk can run to hundreds of thousands of commits. Ten thousand is far more than any window needs unless recordings are extremely sparse, and still lists in tens of milliseconds. Reaching it before the window fills is reported as a Cutoff, never passed over silently.