Skip to main content

tree_diff_structured_parallel

Function tree_diff_structured_parallel 

Source
pub fn tree_diff_structured_parallel(
    odb: &Odb,
    entries: Vec<DiffEntry>,
    config: &ConfigSet,
    thread_policy: &ThreadPolicy,
    diff_options: DiffOptions,
) -> Result<Vec<TreeDiffStructured>>
Expand description

Load sides and compute structured line diffs for each entry in parallel.

Worker threads are used only for 16 or more entries (or the policy’s ThreadPolicy::min_items_override); smaller diffs run on the calling thread.

§Errors

Propagates object database read failures.