diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2025-08-30 21:05:46 +0200 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2025-08-30 21:05:46 +0200 |
| commit | 90c4406d34b8292e70dbefcfade38a036b62f57a (patch) | |
| tree | 005ce7cc554c4f32f0ac0b46c6b828fc1bb554db /src/split_for_sort.c | |
| parent | 9b5c9a9e6199a224061af8284216032202fc0d94 (diff) | |
| download | small-utils-90c4406d34b8292e70dbefcfade38a036b62f57a.tar.gz small-utils-90c4406d34b8292e70dbefcfade38a036b62f57a.tar.bz2 | |
split_for_sort: key colission with 63, switch to 128 lists
Diffstat (limited to 'src/split_for_sort.c')
| -rw-r--r-- | src/split_for_sort.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/split_for_sort.c b/src/split_for_sort.c index 55f396f..36a90af 100644 --- a/src/split_for_sort.c +++ b/src/split_for_sort.c @@ -21,9 +21,11 @@ /* Also used for paths => at least PATH_MAX */ #define BUFFERSIZE 4096 -/* performance optimization. distribute the content across #alnumchars+1 (the _), - * ((unsigned char)name[prefix_length])%LISTS_NR */ -#define LISTS_NR 63 +/* performance optimization, waste a bit of memory. + * ASCII z is 122 and the largest of the allowed values, + * for portability with other encodings % by this for safety */ +#define LISTS_NR 128 + /* The arguments will be * PREFIX - file prefix... |
