diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-03-03 19:02:08 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-03-03 19:02:08 +0100 |
| commit | ecd8bbf2c0b7a4ca20c9cdc5f8f26836d4082c36 (patch) | |
| tree | 59017867a467b496c1ae6f8133d7122e22819693 /src/pruning.c | |
| parent | b5a692702643c8f3e77765ca38677e076bce2b59 (diff) | |
| download | nissy-ecd8bbf2c0b7a4ca20c9cdc5f8f26836d4082c36.tar.gz nissy-ecd8bbf2c0b7a4ca20c9cdc5f8f26836d4082c36.zip | |
Added messages about generating pruning tables
Diffstat (limited to 'src/pruning.c')
| -rw-r--r-- | src/pruning.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pruning.c b/src/pruning.c index d484a12..869110f 100644 --- a/src/pruning.c +++ b/src/pruning.c | |||
| @@ -135,6 +135,18 @@ genptable(PruneData *pd, int nthreads) | |||
| 135 | return; | 135 | return; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | if (nthreads < 4) { | ||
| 139 | fprintf(stderr, | ||
| 140 | "--- Warning ---\n" | ||
| 141 | "You are using only %d threads to generate the pruning" | ||
| 142 | "tables. This can take a while." | ||
| 143 | "Unless you did this intentionally, you should re-run" | ||
| 144 | "this command with `-t 4' or more.\n" | ||
| 145 | "---------------\n\n", nthreads | ||
| 146 | ); | ||
| 147 | } | ||
| 148 | |||
| 149 | |||
| 138 | /* For the first steps we proceed the same way for compact and not */ | 150 | /* For the first steps we proceed the same way for compact and not */ |
| 139 | compact = pd->compact; | 151 | compact = pd->compact; |
| 140 | pd->compact = false; | 152 | pd->compact = false; |
| @@ -144,6 +156,7 @@ genptable(PruneData *pd, int nthreads) | |||
| 144 | fprintf(stderr, "Cannot load %s, generating it with %d threads\n", | 156 | fprintf(stderr, "Cannot load %s, generating it with %d threads\n", |
| 145 | pd->filename, nthreads); | 157 | pd->filename, nthreads); |
| 146 | 158 | ||
| 159 | |||
| 147 | memset(pd->ptable, ~(uint8_t)0, ptablesize(pd)*sizeof(entry_group_t)); | 160 | memset(pd->ptable, ~(uint8_t)0, ptablesize(pd)*sizeof(entry_group_t)); |
| 148 | 161 | ||
| 149 | ptable_update(pd, (Cube){0}, 0); | 162 | ptable_update(pd, (Cube){0}, 0); |
