# Option for lib/mempool.c
Set("POOL_IS_MMAP");
-# FIXME
-Set("CONFIG_UCW_RADIX_SORTER_BITS" => 12);
+# Guess optimal bit width of the radix-sorter
+if (Get("CPU_ARCH") eq "default" || Get("CPU_ARCH") =~ /^i[345]86$/) {
+ # This should be safe everywhere
+ Set("CONFIG_UCW_RADIX_SORTER_BITS" => 10);
+} else {
+ # Use this on modern CPU's
+ Set("CONFIG_UCW_RADIX_SORTER_BITS" => 12);
+}
# If debugging memory allocations:
#LIBS+=-lefence