From 90c4406d34b8292e70dbefcfade38a036b62f57a Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Sat, 30 Aug 2025 21:05:46 +0200 Subject: split_for_sort: key colission with 63, switch to 128 lists --- src/split_for_sort.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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... -- cgit v1.2.3-70-g09d2