commit 879f9a79f56e18d85f7992cc5abd3595a0bb7d62 from: Neels Hofmeyr date: Tue May 05 04:56:21 2020 UTC debug: myers divide: log nr of identical lines slid over commit - 4c42e835223f6d22891beb0abc2d2663ae3d9b7a commit + 879f9a79f56e18d85f7992cc5abd3595a0bb7d62 blob - 1acfa698d7852914725eff21eebb0a9ebc77795b blob + eb67565c358300506376e716dea9b9c42a2ed8a1 --- lib/diff_myers.c +++ lib/diff_myers.c @@ -263,6 +263,9 @@ static void diff_divide_myers_forward(struct diff_data && diff_atom_same(&left->atoms.head[x], &right->atoms.head[xk_to_y(x, k)])) x++; kd_forward[k] = x; + if (x_before_slide != x) { + debug(" down %d similar lines\n", x - x_before_slide); + } if (DEBUG) { int fi; @@ -511,6 +514,9 @@ static void diff_divide_myers_backward(struct diff_dat && diff_atom_same(&left->atoms.head[x-1], &right->atoms.head[xc_to_y(x, c, delta)-1])) x--; kd_backward[c] = x; + if (x_before_slide != x) { + debug(" up %d similar lines\n", x_before_slide - x); + } if (DEBUG) { int fi;