guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29714] [PATCH 1/4] gnu: Add lunzip.


From: Tobias Geerinckx-Rice
Subject: [bug#29714] [PATCH 1/4] gnu: Add lunzip.
Date: Fri, 22 Dec 2017 02:10:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

Tobias Geerinckx-Rice wrote on 15/12/17 at 20:27:
>> * gnu/packages/compression.scm (lunzip): New public variable.
>
> A performance comparison of all these implementations was on my to-do
> list for the weekend, but might be delayed by mandatory holiday cheer.

...or, apparently, dental surgery.

It's about as much fun, but you're not allowed to drink.

Leo Famulari wrote on 15/12/17 at 20:17:
> If the closure of this package is smaller than that of lzip, perhaps we
> could use it instead as the default LZ decompressor when building
> packages.

If I were disappointed, it'd be by a surprisingly lean lzip:

  $ du -hs /gnu/store/wbww96afpdsfpnwhq4kxd6q70nz478jn-lunzip-1.9
  72K      ... # the lunzip binary is 48K
  $ guix size /gnu/store/wbww96afpdsfpnwhq4kxd6q70nz478jn-lunzip-1.9
  store item                          total    self
  /gnu/store/...-glibc-2.25              38.5    37.1  54.0%
  /gnu/store/...-gcc-5.4.0-lib           68.6    30.1  43.8%
  /gnu/store/...-bash-static-4.4.12       1.4     1.4   2.1%
  /gnu/store/...-lunzip-1.9              68.7     0.0   0.1%
  total: 68.7 MiB

  $ du -hs /gnu/store/8abzs1c39klm0d2sh8bwv6xn7924blam-lzip-1.18
  172K     ... # the lzip binary is 124K
  $ guix size /gnu/store/8abzs1c39klm0d2sh8bwv6xn7924blam-lzip-1.18
  store item                          total    self
  /gnu/store/...-glibc-2.25              38.5    37.1  54.0%
  /gnu/store/...-gcc-5.4.0-lib           68.6    30.1  43.8%
  /gnu/store/...-bash-static-4.4.12       1.4     1.4   2.1%
  /gnu/store/...-lzip-1.18               68.8     0.1   0.2%
  total: 68.8 MiB

Lzip: too cool to fit in 100%.

Both variants are equally fast. Switching to lunzip saves 100K.
I'm tempted to try it, but that might be the opiates talking.

Kind regards,

T G-R

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]