changeset 2273:6878aad714ce

Add a slowness warning (the threshold value will probably need adjusting.)
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 17 Jun 2019 11:50:33 +0300
parents 4f52b7f5fe51
children a4c1fafd442a
files tools/fanalyze.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fanalyze.c	Mon Jun 17 11:50:12 2019 +0300
+++ b/tools/fanalyze.c	Mon Jun 17 11:50:33 2019 +0300
@@ -931,6 +931,13 @@
         dmPrint(0, "Attempting to find matching sequences of %" DM_PRIu_SIZE_T" bytes or more\n",
             optMinMatchLen);
 
+        if (totalSize > 32*1024)
+        {
+            dmPrint(0,
+            "WARNING! Total data size is large, and the matching \"algorithm\"\n"
+            "used is horribly inefficient. This will be quite slow ...\n");
+        }
+
         for (int nfile1 = 0; nfile1 < nsrcFiles; nfile1++)
         {
             DMSourceFile *file1 = &srcFiles[nfile1];