From f1b56d292bbe248bf29c078d27986cdfbb1b3d39 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 6 Sep 2007 22:00:10 +0200 Subject: [PATCH] A few bits of commentary. --- lib/sorter/array.c | 2 +- lib/sorter/array.h | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/sorter/array.c b/lib/sorter/array.c index 65a11921..a6c217e8 100644 --- a/lib/sorter/array.c +++ b/lib/sorter/array.c @@ -7,7 +7,7 @@ * of the GNU Lesser General Public License. */ -#define LOCAL_DEBUG +#undef LOCAL_DEBUG #include "lib/lib.h" #include "lib/sorter/common.h" diff --git a/lib/sorter/array.h b/lib/sorter/array.h index 1370baa5..ef1d0551 100644 --- a/lib/sorter/array.h +++ b/lib/sorter/array.h @@ -8,11 +8,14 @@ */ /* - * This is a generator of routines for sorting arrays, very similar to the one - * in lib/arraysort.h. + * This is a generator of routines for sorting huge arrays, similar to the one + * in lib/arraysort.h. It cannot handle discontiguous arrays, but it is able + * to employ radix-sorting if a monotone hash function is available and also + * use several threads in parallel on SMP systems (this assumes that all + * callbacks you provide are thread-safe). * - * FIXME: - * FIXME: Note on thread-safety + * It is usually called internally by the generic shorter machinery, but + * you are free to use it explicitly if you need. * * So much for advocacy, there are the parameters (those marked with [*] * are mandatory): @@ -23,13 +26,18 @@ * ASORT_LT(x,y) x < y for ASORT_TYPE (default: "x x