Re: Gzip better than Bz2 ? Normal?



Franck Y wrote:
Hi everyone,
I ve got a strange behavior with bz2 and gzip.
When i compress a small folder around 225 Mo the compression goes to
  49 Mo for gzip
46 mo for bzip2

When i compress a bigger folder around 5 Go the compression goes to
2.6 Go for gzip
3.1  mo for bzip2

[snip]

Not surprising at all. It is a theorem that, for any compression
algorithm which makes the compressed version of some file
smaller than the uncompressed version, there is a file for
which the compressed version is *larger* than the uncompressed
version. Compression algorithms all make assumptions about the
form of the input data. How well any given collection of files
matches those assumptions determines how well the algorithm works
on that collection.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • [bzip2/lzma] fix for built-in initramfs issue
    ... architectures which don't do this style of kernel compression. ... available (bzip2 or lzma) or left uncompressed if none is available. ... Support loading of a gzip encoded initial ramdisk or cpio buffer. ... arch/$/Makefile to see the flags used before .incbin was introduced. ...
    (Linux-Kernel)
  • www.CeBeans.com - new program listings - Sep 21 2009
    ... Zipped file with maximum compression. ... The GZip compression/decompression is from ... when a new picture is detected in the folder the program GZips the JPEG ... Free man every round after five. ...
    (microsoft.public.pocketpc)
  • Re: Compression identical to its inverse?
    ... Show a compression algorithm that is *identical* ... If gzip works, the gzip output ... i.e. whenever you find two consecutive zero bits, ...
    (comp.compression)
  • correction (Re: RFC, an ugly parser hack (and a bin-xml variant))
    ... > it is, well, signifigantly faster than my textual parser, largely because ... or maybe exceed that of gzip. ... and then rebuild the trees, which is faster than a pure-adaptive variant, ... but typically helps compression). ...
    (comp.text.xml)
  • RE: gzip compression for compact framework
    ... GzIp header and for the GetwebResponse methods i decompress it. ... I have implemented compression in my desktop application but cannot do it ... GetWebRequest and GetwebResponse did not exist before the SP3 and so had ...
    (microsoft.public.windowsce.app.development)