]> icculus.org git repositories - icculus/xz.git/commit - src/xz/message.c
Make the default memory usage limit 40 % of RAM for both
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 22 May 2009 08:29:50 +0000 (11:29 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 22 May 2009 08:29:50 +0000 (11:29 +0300)
commitb0063023f8adb06ea735ec4af5c6f5b7bdb8e84d
tree7a875e927ad12b63bba7e3f56d3240ab7e691734
parent071b825b23911a69dd1cd2f8cda004ef8a781fae
Make the default memory usage limit 40 % of RAM for both
compressing and decompressing. This should be OK now that
xz automatically scales down the compression settings if
they would exceed the memory usage limit (earlier, the limit
for compression was increased to 90 % because low limit broke
scripts that used "xz -9" on systems with low RAM).

Support spcifying the memory usage limit as a percentage
of RAM (e.g. --memory=50%).

Support --threads=0 to reset the thread limit to the default
value (number of available CPU cores). Use UINT32_MAX instead
of SIZE_MAX as the maximum in args.c. hardware.c was already
expecting uint32_t value.

Cleaned up the output of --help and --long-help.
src/xz/args.c
src/xz/hardware.c
src/xz/hardware.h
src/xz/message.c
src/xz/process.c