This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
suggestion to use lzma for snapshots, maybe more?
- From: Kevin Hunter <hunteke at earlham dot edu>
- To: gcc at gnu dot org
- Date: Tue, 12 Jan 2010 19:40:50 -0500
- Subject: suggestion to use lzma for snapshots, maybe more?
Hi GNU GCC folks,
I was idly looking through a couple of snapshots of the gcc -trunk line.
I am by no means a compiler developer, but I did notice that you aren't
using lzma for compression. I don't know if bandwidth is at all a
concern, but I can point to a >20% drop in download size:
$ svn co svn://gcc.gnu.org/svn/gcc/trunk gcc-trunk
...
$ find gcc-trunk -name ".svn" -type d -print0 | xargs -0 rm -rf
$ tar -cf - gcc-trunk | lzma --best > gcc-trunk.tlz &
$ tar -cf - gcc-trunk | bzip2 --best > gcc-trunk.tbz &
$ wait
$ ls -lh gcc-trunk.t?z
-rw-r--r-- 1 kevin kevin 58M 2010-01-12 18:44 gcc-trunk.tbz
-rw-r--r-- 1 kevin kevin 46M 2010-01-12 18:41 gcc-trunk.tlz
lzma takes about 6 times as long, but on my machine it takes just over 7
minutes, which I'd say is reasonable:
$ tar -cf - mygcc | \
> pv -cN i -s 402m | \
> lzma --best | \
> pv -cN o > gcc-trunk.tlz
i: 402MB 0:07:09 [ 958kB/s] [===============>] 100%
o: 45.1MB 0:07:10 [ 107kB/s] [ <=> ]
Anyhoo, since lzma is available on most distros now, I thought I'd
proffer it as a suggestion to y'all.
G'day,
Kevin