all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Brendan Tildesley <mail@brendan.scot>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: SHA256 performance with Guile 2.2 vs. Guile 3.0
Date: Wed, 08 Jan 2020 22:20:58 +0100	[thread overview]
Message-ID: <87ftgpejb9.fsf@gnu.org> (raw)
In-Reply-To: <f6dd29bd-deb6-ac8b-21a5-3e24a45708b4@brendan.scot> (Brendan Tildesley's message of "Sat, 4 Jan 2020 17:21:42 +1100")

Hi,

Brendan Tildesley <mail@brendan.scot> skribis:

>> Still far from the libgcrypt implementation in C + asm, but hey!
>
> Actually guix hash is still a lot slower than using the sha256sum cli
> tool. For me 7x faster for the guile tarball, and 4x faster for a
> 700MiB file. Maybe because guile opens a file with it's ports and
> feeds it to libgcrypt. If guix is heavy relying on hashing files
> stored in the filesystem, maybe it would be better to directly use
> sha256sum or perhaps libgcrypt has a function do open a file and hash
> it on it's own?

We’d need to look at the specifics, but given that “guix hash
guile-2.2.6.tar.xz” takes less than 0.1s, the timing difference you see
between “guix hash” and “sha256sum” is likely due to the startup time of
the “guix” command.

Ludo’.

      reply	other threads:[~2020-01-08 21:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-04  6:21 SHA256 performance with Guile 2.2 vs. Guile 3.0 Brendan Tildesley
2020-01-08 21:20 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftgpejb9.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mail@brendan.scot \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.