(2008032902 - LFS) Compression
robert at linuxfromscratch.org
Sat Mar 29 14:07:53 PDT 2008
On Saturday March 29 2008 11:54:07 am Adrian Fisher wrote:
> Hello again all :)
> What is the best open source (or at least non commercial) compression
> format known? How does it fair with source code?
7zip/lzma compresses better than anything else, but also costs the most cpu.
If saving space is your primary concern, then this is the best choice. The
decompression time for lzma is very competitive. Here are some examples:
1m32.503s compression time at -9
0m29.657s decompression time
0m49.603s compression time at -9
0m7.515s decompression time
11m1.600s compression time at -9
0m10.397s decompression time
Note that your results may be different, depending on assembly code used when
building lzma, and the type of file you're compressing. Lzma is ideal for the
world we currently live in... it is much better for the file's maker to spend
ten times longer compressing a file if it saves download time and storage
space. If, however, you're compressing whole partitions (or compressing,
decompressing, reading/editing, and recompressing, repeatedly) it will
probably be too expensive on the cpu, and gzip/zlib may be a better choice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the lfs-chat