Mercurial > hg > dmlib
comparison tools/fanalyze.c @ 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 |
comparison
equal
deleted
inserted
replaced
2272:4f52b7f5fe51 | 2273:6878aad714ce |
---|---|
929 // Attempt to find matching sequences of N+ | 929 // Attempt to find matching sequences of N+ |
930 // | 930 // |
931 dmPrint(0, "Attempting to find matching sequences of %" DM_PRIu_SIZE_T" bytes or more\n", | 931 dmPrint(0, "Attempting to find matching sequences of %" DM_PRIu_SIZE_T" bytes or more\n", |
932 optMinMatchLen); | 932 optMinMatchLen); |
933 | 933 |
934 if (totalSize > 32*1024) | |
935 { | |
936 dmPrint(0, | |
937 "WARNING! Total data size is large, and the matching \"algorithm\"\n" | |
938 "used is horribly inefficient. This will be quite slow ...\n"); | |
939 } | |
940 | |
934 for (int nfile1 = 0; nfile1 < nsrcFiles; nfile1++) | 941 for (int nfile1 = 0; nfile1 < nsrcFiles; nfile1++) |
935 { | 942 { |
936 DMSourceFile *file1 = &srcFiles[nfile1]; | 943 DMSourceFile *file1 = &srcFiles[nfile1]; |
937 | 944 |
938 for (int nfile2 = 0; nfile2 < nsrcFiles; nfile2++) | 945 for (int nfile2 = 0; nfile2 < nsrcFiles; nfile2++) |