On Sun, Dec 18, 2005 at 08:31:26PM +0100, Florian Weimer wrote:
> > Afaict from the webpage 7zip (LZMA) is quite a bit slower bzip2. -
> > Have you perhaps run some benchmarks?
> Memory use during decompression would be interesting, too.

For pure lzma it isn't really bad, it's about 100kb + directory_size and
this is usually 8 MB (that is a sane value), but smaller directory
sizes may be used as well.

Some data discussion, also for the speed issue:

(user time only)
compression of libgcj6 (17612800 uncompressed), the first file i found
that is big enough for usefull data

gzip            -  7.5 sec - 5118403
bzip2           - 16.9 sec - 5039522
lzma 8MB (-a2)  - 53.8 sec - 3643734
lzma 2MB (-a2)  - 50.3 sec - 3648493
lzma 1MB (-a2)  - 48.1 sec - 3675183
lzma 1MB (-a1)  - 41.1 sec - 3707349
lzma 1MB (-a0)  - 23.5 sec - 3985219
lzma 512k(-a0)  - 22.6 sec - 3994574
lzma 2MB (-a0)  - 26.5 sec - 3979074

decompression:
                      Memory usage about
gzip     -  0.2 sec -   no idea, but few
bzip2    -  3.2 sec -   3700 kb
lzma 8MB -  0.8 sec -   8200 kb
lzma 2MB -  0.8 sec -   2150 kb
lzma 1MB -  0.8 sec -   1120 kb
lzma 512k-  0.8 sec -   620 kb


In the end adding lzma to dpkg can't harm, it's just a small patch and
has no external requierements, code size just grows like 12 kb or
something.

Cheers,
Christian

-- 
  "Omnis enim res, quae dando non deficit, dum habetur et non datur,
   nondum habetur, quomodo habenda est."       (Aurelius Augustinus)
  Translation: <http://gnuhh.org/work/fsf-europe/augustinus.html>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to