all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#41794: Thoughts on using Zstd compression instead of lzip
@ 2020-06-10 19:22 romulasry via Bug reports for GNU Guix
  2020-06-10 20:59 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: romulasry via Bug reports for GNU Guix @ 2020-06-10 19:22 UTC (permalink / raw)
  To: 41794

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

http://www.zstd.net/

Zstandard is a real-time compression algorithm, providing high compression ratios. It offers a very wide range of compression / speed trade-off, while being backed by a very fast decoder (see [benchmarks](http://facebook.github.io/zstd/#benchmarks) below). It also offers a special mode for small data, called [dictionary compression](http://facebook.github.io/zstd/#small-data), and can create dictionaries from any sample set. Zstandard library is provided as open source software using a BSD license.

Sent with [ProtonMail](https://protonmail.com) Secure Email.

[-- Attachment #2: Type: text/html, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41794: Thoughts on using Zstd compression instead of lzip
  2020-06-10 19:22 bug#41794: Thoughts on using Zstd compression instead of lzip romulasry via Bug reports for GNU Guix
@ 2020-06-10 20:59 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2020-06-11 21:21   ` Ludovic Courtès
  2020-06-13 20:30   ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-06-10 20:59 UTC (permalink / raw)
  To: romulasry; +Cc: 41794


[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]

Romulas,

It's not clear where you want to see zstd used.  Here's a trivial 
patch to add Zstd to ‘guix pack’, if that's what you mean.

I didn't submit it in the past because I dread bikeshedding the 
compression level.  -3 is the default, and compresses slightly 
better than gzip in a fraction of the time.

Kind regards,

T G-R


[-- Attachment #1.2: 0001-pack-Add-zstd-compressor.patch --]
[-- Type: text/x-patch, Size: 1221 bytes --]

From fa2ead6ac0f6c005e6392d6073122c7191e08944 Mon Sep 17 00:00:00 2001
From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Fri, 08 Nov 2019 09:03:27 +0100
Subject: [PATCH] pack: Add zstd compressor.

* guix/scripts/pack.scm (%compressors): Add ztsd.
---
 guix/scripts/pack.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 518bf6e7e3..5e71ca9c21 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net>
 ;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
 ;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -81,6 +82,8 @@
                     #~(#+(file-append xz "/bin/xz") "-e"))
         (compressor "bzip2" ".bz2"
                     #~(#+(file-append bzip2 "/bin/bzip2") "-9"))
+        (compressor "zstd" ".zst"
+                    #~(#+(file-append zstd "/bin/zstd") "-3"))
         (compressor "none" "" #f)))
 
 ;; This one is only for use in this module, so don't put it in %compressors.
-- 
2.26.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#41794: Thoughts on using Zstd compression instead of lzip
  2020-06-10 20:59 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-06-11 21:21   ` Ludovic Courtès
  2020-06-13 20:30   ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2020-06-11 21:21 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 41794, romulasry

Hi,

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> It's not clear where you want to see zstd used.  Here's a trivial
> patch to add Zstd to ‘guix pack’, if that's what you mean.

I suppose that was for substitutes, in reference to:

  https://guix.gnu.org/blog/2019/substitutes-are-now-available-as-lzip/

The idea is worth discussing, but IMO, romulasry, discussions should
happen on guix-devel rather than guix-patches… unless the discussion
comes with a patch, of course.  :-)

Closing!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41794: Thoughts on using Zstd compression instead of lzip
  2020-06-10 20:59 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2020-06-11 21:21   ` Ludovic Courtès
@ 2020-06-13 20:30   ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2020-06-13 20:30 UTC (permalink / raw)
  To: 41794; +Cc: romulasry

Hi,

Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
skribis:

> From fa2ead6ac0f6c005e6392d6073122c7191e08944 Mon Sep 17 00:00:00 2001
> From: Tobias Geerinckx-Rice <me@tobias.gr>
> Date: Fri, 08 Nov 2019 09:03:27 +0100
> Subject: [PATCH] pack: Add zstd compressor.
>
> * guix/scripts/pack.scm (%compressors): Add ztsd.

BTW, feel free to push it after mentioning zstd for -C under “Invoking
guix pack”.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-13 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10 19:22 bug#41794: Thoughts on using Zstd compression instead of lzip romulasry via Bug reports for GNU Guix
2020-06-10 20:59 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-06-11 21:21   ` Ludovic Courtès
2020-06-13 20:30   ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.