From c1f8d483879846a8d207355a67ce388778a8e773 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 29 Jan 2007 12:08:52 +0100 Subject: Modify "ls" to sort its data faster, using the new gnulib mpsort module rather than qsort. This is particularly a win in environments where strcoll is slow, since mpsort typically calls strcoll less often than qsort does. * bootstrap.conf (gnulib_modules): Add mpsort. * src/ls.c: Include mpsort.h. (sorted_file, sorted_file_alloc): New vars, for a new vector of pointers to the file info, for speed. (clear_files, extract_dirs_from_files, sort_files, print_current_files): (print_many_per_line, print_horizontal, print_with_commas): (calculate_columns): Set and use new vector. (initialize_ordering_vector): New function. --- bootstrap.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap.conf') diff --git a/bootstrap.conf b/bootstrap.conf index b262622e0..631f2eddf 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -53,7 +53,7 @@ gnulib_modules=" lchmod lchown lib-ignore linebuffer link-follow long-options lstat malloc mbswidth md5 memcasecmp mempcpy memrchr mkancesdirs mkdir mkdir-p mkstemp mktime modechange - mountlist obstack pathmax perl physmem posixtm posixver putenv + mountlist mpsort obstack pathmax perl physmem posixtm posixver putenv quote quotearg raise readlink readtokens readtokens0 readutmp realloc regex rename-dest-slash rmdir rmdir-errno root-dev-ino -- cgit v1.2.3-54-g00ecf