[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH v2 2/2] libdpkg: compress_lzma(): decrease default compression level



Hi!

On Sat, 2009-10-24 at 18:05:47 -0500, Jonathan Nieder wrote:
> Set the default compression level low enough to produce packages
> that require no more than 10 MiB of memory to decompress, by
> using the lzma command's default compression level.

> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
> ---
>  lib/dpkg/compression-backend.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/dpkg/compression-backend.c b/lib/dpkg/compression-backend.c
> index 8f0c055..4b4c9c3 100644
> --- a/lib/dpkg/compression-backend.c
> +++ b/lib/dpkg/compression-backend.c
> @@ -25,7 +25,7 @@
>  
>  static const char default_gz_compression = '9';
>  static const char default_bz2_compression = '9';
> -static const char default_lzma_compression = '9';
> +static const char default_lzma_compression = '\0';
>  
>  static void fd_fd_filter(int fd_in, int fd_out, const char *desc,
>  	const char *file, const char *cmd, const char *argfmt, ...)

I've not yet changed the default for the lzma compressor, but I'd like
to set it explicitly instead of relying on the library/command, I
guess 6 or 7 should be fine? (the lzma tool default to 7, xz to 6).

regards,
guillem


Reply to: