From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Tildesley Subject: Re: SHA256 performance with Guile 2.2 vs. Guile 3.0 Date: Sat, 4 Jan 2020 17:21:42 +1100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51724) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1incou-0006Vi-PN for guix-devel@gnu.org; Sat, 04 Jan 2020 01:21:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1incos-0002yk-HW for guix-devel@gnu.org; Sat, 04 Jan 2020 01:21:55 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:31350) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1incos-0002rc-7E for guix-devel@gnu.org; Sat, 04 Jan 2020 01:21:54 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 47qWrZ0fJFzKmhN for ; Sat, 4 Jan 2020 07:21:50 +0100 (CET) Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id bcOXXVUTGa0O for ; Sat, 4 Jan 2020 07:21:47 +0100 (CET) Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" 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?