X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsorter%2Farray.c;h=e1805245ff4b1a609903fecca20120f7a8014416;hb=09108be37909fd087b301c221881fd11601e88b5;hp=cb8c7aa79f81f3d33511888aea9bced6f80d2382;hpb=3e55c9dac06fdfe2a1a63b51afa10b0a6f8dc31e;p=libucw.git diff --git a/lib/sorter/array.c b/lib/sorter/array.c index cb8c7aa7..e1805245 100644 --- a/lib/sorter/array.c +++ b/lib/sorter/array.c @@ -332,7 +332,7 @@ rs_radix(struct asort_context *ctx, void *array, void *buffer, uns num_elts, uns uns n = cnt[i] - pos; if (!n) continue; - if (n * ctx->elt_size < sorter_thread_threshold) + if (n * ctx->elt_size < sorter_thread_threshold || shift < ASORT_MIN_SHIFT) { struct rs_work *w = ep_alloc(ctx->eltpool); w->w.priority = 0;