Change the default of --enable-assume-ram from 32 to 128 MiB.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 7 Mar 2010 11:34:34 +0000 (13:34 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 7 Mar 2010 11:34:34 +0000 (13:34 +0200)
This is to allow files created with "xz -9" to be decompressed
if the amount of RAM cannot be determined.

INSTALL
configure.ac

diff --git a/INSTALL b/INSTALL
index 0845b15..36250c1 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -245,9 +245,8 @@ XZ Utils Installation
                 On some systems, there is no code to detect the amount of
                 RAM though. Using --enable-assume-ram one can set how much
                 memory to assume on these systems. SIZE is given as MiB.
-                The default is 32 MiB, which is probably too low for most
-                systems, but it is enough to allow decompressing .xz files
-                created with the default settings.
+                The default is 128 MiB, which allows decompressing files
+                created with "xz -9".
 
                 Feel free to send patches to add support for detecting
                 the amount of RAM on the operating system you use. See
index bfb6430..af317e9 100644 (file)
@@ -348,15 +348,16 @@ AC_MSG_RESULT([$enable_threads])
 # Assumed amount of RAM #
 #########################
 
-# We use 32 MiB as default, because it should be small enough for most
-# cases and allows decompressing files compressed with the default settings.
-# Probably it is too small for most systems, but it's safer to guess too low.
+# We use 128 MiB as default, because it will allow decompressing files
+# created with "xz -9". It would be slightly safer to guess a lower value,
+# but most systems, on which we don't have any way to determine the amount
+# of RAM, will probably have at least 128 MiB of RAM.
 AC_MSG_CHECKING([how much RAM to assume if the real amount is unknown])
 AC_ARG_ENABLE([assume-ram], AC_HELP_STRING([--enable-assume-ram=SIZE],
                [If and only if the real amount of RAM cannot be determined,
-               assume SIZE MiB. The default is 32 MiB. This affects the
+               assume SIZE MiB. The default is 128 MiB. This affects the
                default memory usage limit.]),
-       [], [enable_assume_ram=32])
+       [], [enable_assume_ram=128])
 assume_ram_check=`echo "$enable_assume_ram" | tr -d 0123456789`
 if test -z "$enable_assume_ram" || test -n "$assume_ram_check"; then
        AC_MSG_RESULT([])