# HG changeset patch # User Matti Hamalainen # Date 1560761433 -10800 # Node ID 6878aad714ce9e0d014ede834bdb8f58b4730851 # Parent 4f52b7f5fe51cd52819fb96d1835061c919cb503 Add a slowness warning (the threshold value will probably need adjusting.) diff -r 4f52b7f5fe51 -r 6878aad714ce tools/fanalyze.c --- 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];