* Re: SHA256 performance with Guile 2.2 vs. Guile 3.0
@ 2020-01-04 6:21 Brendan Tildesley
2020-01-08 21:20 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Brendan Tildesley @ 2020-01-04 6:21 UTC (permalink / raw)
To: guix-devel
> 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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SHA256 performance with Guile 2.2 vs. Guile 3.0
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
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-01-08 21:20 UTC (permalink / raw)
To: Brendan Tildesley; +Cc: guix-devel
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’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-08 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.