Skip to main content

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.

Route only when the included diff is large enough to benefit from per-file analysis, or when a single included file would be truncated in the map phase.