From: Martin Mares Date: Thu, 6 Sep 2007 20:00:10 +0000 (+0200) Subject: A few bits of commentary. X-Git-Tag: holmes-import~506^2~13^2~52 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f1b56d292bbe248bf29c078d27986cdfbb1b3d39;p=libucw.git A few bits of commentary. --- 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