should_use_map_reduce

Function should_use_map_reduce 

Source
pub fn should_use_map_reduce(
    diff: &str,
    config: &CommitConfig,
    counter: &TokenCounter,
) -> bool
Expand description

Check if map-reduce should be used Always use map-reduce except for:

  1. Explicitly disabled in config
  2. Very small diffs (≤3 files) where overhead isn’t worth it