Skip to contentSkip to conversation

zlib in the kernel?

DISCUSSION Robert L. Harris 2 participants 2 messages Mar 27, 2003

lore
Share & tools
lore
#0 lore raw

Anyone have a good breakdown on what this is? I have some wild theories I'm hoping are right but don't need to start another day looking like an idiot guessing blindly.

The Help section is empty and I'm not finding anything on kernel.org (may have overlooked something, the site is slow for me today)..

Robert

:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: E344DA3B

                                         @ x-hkp://pgp.mit.edu 

DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.

Diagnosis: witzelsucht

IPv6 = [email protected] http://ipv6.rdlg.net
IPv4 = [email protected] http://www.rdlg.net

#1 lore raw
Quoted 7 lines · Robert L. Harris

Anyone have a good breakdown on what this is? I have some wild theories I'm hoping are right but don't need to start another day looking like an idiot guessing blindly.

The Help section is empty and I'm not finding anything on kernel.org (may have overlooked something, the site is slow for me today)..

Zlib compression is used in many places in the kernel, cramfs, jffs2, squashfs, zisofs, cloop, ppp, maybe more.

There used to be several copies of the code in the kernel tree, I still have a not-so-old compiled kernel with *three* copies of the zlib code in it. It's centralized now under lib/, which is a good thing (TM).

When configuring the kernel, chances are you don't have to touch it. Anything else should be reported and get fixed. :)

Jörn

Signature · 4 lines
Fancy algorithms are slow when n is small, and n is usually small.
Fancy algorithms have big constants. Until you know that n is
frequently going to be big, don't get fancy.
-- Rob Pike