what's the difference in compress/uncompress speed?
7zip's supposed to be a good thing though
I wrote a script to be able to repack (and fix) official ati installer packages. Then I tested different compressions. Here the results:
51213090 ati-driver-installer-8.41.7-x86.x86_64.run
48289029 ati-driver-installer-8.41.7-x86.x86_64.run.bzip2
23317971 ati-driver-installer-8.41.7-x86.x86_64.run.lzma
For bzip2 and lzma max -9 compression was used like it gzip -9 is used in original package. In percentage:
100% ati-driver-installer-8.41.7-x86.x86_64.run
94% ati-driver-installer-8.41.7-x86.x86_64.run.bzip2
46% ati-driver-installer-8.41.7-x86.x86_64.run.lzma
Of course that needs lzma installed on the system or you have to put in a static build of lzma, but download size would be much smaller. lzma is the compression which used by 7zip.
Last edited by Kano; 10-23-2007 at 02:03 AM.
what's the difference in compress/uncompress speed?
7zip's supposed to be a good thing though
7z is *damn* slow regarding compressing/uncompressing. It takes a whole lot more time to compress/decompress a 7z file.
Beside this it is a rather new compression format. Due to this I do not trust this format so far since it has not proven to work in all cases, there might be some cases left where a lossless compression ain't working as expected. It takes quite some time until no compression algorithms are widely accepted...
Well compression takes of course much longer (nearly 4 min on X2-3800+), but uncompress is not much slower than gzip - you would not see any difference. The only trick would be getting a lzma or better only the decoder lzmadec into the package. lzmadec static stripped with gzip packed would need around 200 kb extra space only.
but the first thing needs to be made clear is, why is a driver take such a large space...![]()
Very easy: it is multiply times stored it it. 4x for each arch, so 8x in total and gzip just does not "find" enough similaries between those. Also the installer is stored twice.
lzma is a fairly good compression algorithm, but it's damn slow to pack something (which is not a problem in fglrx case, since ati does it) and it's not always reliable in its compression ratio. it does a bad job with certain file types (e.g. textual files) and other comression methods are size-comparable much faster.
also most 7zip algorithms use loads of memory to unpack. maybe lzma does not, i don't know.
a lot of features... that's just great....... like no AA/vsync settings in the control panel....
![]()