Re: Linux Kernel Source Compression

From: Joshua Hudson
Date: Mon May 22 2006 - 17:10:54 EST

On 5/22/06, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
Alistair John Strachan wrote:
> Seriously, though, if I understand gzip correctly, it uses deflate/zlib
> internally. Why, in that case, does /bin/gzip not (dynamically) link against
> libz? If a first step was fixing that, a second could be linking dynamically
> against libbz2 and 'liblzma', and making it all compile-time configurable.

Because gzip predates zlib...

Also because it runs faster than zlib on x86 due to register pressure.
code costs one register. x86 only has 7 that an algorithm can scribble over
(8 if it doesn't have any stack).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at