Function similar::algorithms::myers::diff_deadline
source · pub fn diff_deadline<Old, New, D>(
d: &mut D,
old: &Old,
old_range: Range<usize>,
new: &New,
new_range: Range<usize>,
deadline: Option<Instant>,
) -> Result<(), D::Error>
Expand description
Myers’ diff algorithm with deadline.
Diff old
, between indices old_range
and new
between indices new_range
.
This diff is done with an optional deadline that defines the maximal execution time permitted before it bails and falls back to an approximation.