Blame SOURCES/diffutils-3.3-diffseq.patch

ce92f5
diff -up diffutils-3.3/src/analyze.c.me diffutils-3.3/src/analyze.c
018fca
--- diffutils-3.3/src/analyze.c.me	2022-12-13 23:52:03.027335306 +0100
018fca
+++ diffutils-3.3/src/analyze.c	2022-12-13 23:56:10.918974724 +0100
018fca
@@ -575,11 +575,12 @@ diff_2_files (struct comparison *cmp)
ce92f5
       ctxt.heuristic = speed_large_files;
ce92f5
 
018fca
       /* Set TOO_EXPENSIVE to be approximate square root of input size,
ce92f5
-	 bounded below by 256.  */
018fca
+	 bounded below by 4096. 4096 seems to be good for
018fca
+         circa-2016 CPUs; see Bug#16848 and Bug#24715  */
018fca
       too_expensive = 1;
018fca
       for (;  diags != 0;  diags >>= 2)
018fca
 	too_expensive <<= 1;
ce92f5
-      ctxt.too_expensive = MAX (256, too_expensive);
018fca
+      ctxt.too_expensive = MAX (4096, too_expensive);
018fca
 
ce92f5
       files[0] = cmp->file[0];
ce92f5
       files[1] = cmp->file[1];