From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aBQeH9zgAmUZKAAAG6o9tA:P1 (envelope-from ) for ; Thu, 14 Sep 2023 12:30:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aBQeH9zgAmUZKAAAG6o9tA (envelope-from ) for ; Thu, 14 Sep 2023 12:30:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3D5C839F61 for ; Thu, 14 Sep 2023 12:30:52 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="cZDTnf/+"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694687452; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=EwbptvXDN3LPRmTbtlk/SfJ3jbJqQe+7qmORaOgWfys=; b=OLOQiK8cNrmVni1GWB7w1y/H5dWrKAADfpUmpUm+qYMiopq0NKkLz++xG5Kdxfhv++yqfT N0n9irPpOPe0EE5RFEb6xtdu5Ofw6Qd67Hjxvk7XLdRkjpzDiHJsKoxQ6x6YDIsT2o0GCJ B3IkQbOjCiQ/MN5A5KFjwFz/RBgGC6VAI64aIHX0w2SRsy4lFhENz8jziJx5gn/iaxmZml xEQSl5+dD3F4Ngw5rb6gsuQ0ibndP0bUtJc7bqPHd6flz52eVLmVh39QvD+YJEE0g0zUOJ HSq2WEWig46UwNmot8ELH1wDu8eHlG5BcsIjEUVdtDXWodw33dhl2gIx6CAqAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="cZDTnf/+"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694687452; a=rsa-sha256; cv=none; b=br2YxAGw65KnavOnQkBzJRWRUAUhwBrtbCLIo8u4wfXka9kCj14pTifBBtwGzFyfedd1Gb Z+BUs7uRLmflDnadgZdv33D/f1TLmpkQkh93m0QRoVZHXxjaR3+CAKP+e8ZsaXKwIxYPV6 QtXGU2t2n27ZEpIGWz9tQDs0AF4RDgtPP/ABQU7VmCL/CrQz2XhhdexYz/hKXuBUHoJDDU eUgyHaVX8vbooUn7U3Kz4ZFnkYBaOKa7ZL35OK9c1DxG2QPr1FcwLC6t9X4dPbamzp5MPN ErS+1z40WQE0+qd0qsC85+OXk88pZpSC22yBJQQPbrTqDvEIxvVVC0yleUfbdg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgjcJ-0003T9-CI; Thu, 14 Sep 2023 06:30:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgjcF-0003SC-AJ for guix-devel@gnu.org; Thu, 14 Sep 2023 06:30:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgjcF-00045M-1q; Thu, 14 Sep 2023 06:30:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=EwbptvXDN3LPRmTbtlk/SfJ3jbJqQe+7qmORaOgWfys=; b=cZDTnf/+OjWawQVwXh6b 6mmQBTghS3MN+XQDv07V++Ujef7HZkLFXyKwCKTdqc0vddzrruIEPLj3Y9AZXY6K0mCOamrdUkUrs pw4h5K9rojGYTBd1WACRgc8kvT/Di4h1oFIsfmXcdBaj0UBx+EOg3Uwoath3ahLJVqmOp6VnkDqhD s9Sa20vRN9CtscsMo9USe1dkXSx/4vBfwGAEqWh3WUGV12LrE6by0hRKbc02cUlisAUqypqmqcAmn EgAacjJKeOGrgI6ATqZ024hiaK+J6gAjHS/qh1Cg/+Entp1nJ5IaCZhL2L+6heZCpepRqWOLAFnM0 NvawmTvrDW/i+w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Cc: Maxim Cournoyer , guix-devel@gnu.org Subject: Re: comparing commit-relation using Scheme+libgit2 vs shellout plumbing Git References: <871qf4ivsr.fsf@gmail.com> <87msxswoph.fsf@gmail.com> <865y4gz5q9.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 28 Fructidor an 231 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour du =?utf-8?Q?Ma=C3=AFs?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 14 Sep 2023 12:30:26 +0200 In-Reply-To: <865y4gz5q9.fsf@gmail.com> (Simon Tournier's message of "Tue, 12 Sep 2023 00:48:30 +0200") Message-ID: <87jzstcail.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -3.81 X-Spam-Score: -3.81 X-Migadu-Queue-Id: 3D5C839F61 X-TUID: JqKihO2fuDLi Simon Tournier skribis: > On my machine, I get something less spectacular for a history with 1000 > commits in between. > > scheme@(guix-user)> ,time (commit-relation* 1000th newest) > $1 =3D ancestor > ;; 0.128948s real time, 0.082921s run time. 0.046578s spent in GC. > scheme@(guix-user)> ,time (commit-relation 1000th newest) > $2 =3D ancestor > ;; 4.588075s real time, 5.521358s run time. 1.404764s spent in GC. > > I did something very similar as wolf is proposing and named it > =E2=80=99commit-relation*=E2=80=99. That=E2=80=99s an order of magnitude. Probably it could be a bit less if w= e put some effort in it (=E2=80=98commit-relation=E2=80=99 is implemented in a fa= irly naive way.) That said, =E2=80=98commit-relation=E2=80=99 is just one example. I=E2=80= =99d encourage interested people to look at (guix git-authenticate) to get a feel of what we need. Most of it is quite pedestrian, like =E2=80=98load-keyring-from-reference=E2=80=99 or =E2=80=98commit-signing-ke= y=E2=80=99, but I don=E2=80=99t think we can get a decent throughput if we shell out for all these things (assuming =E2=80=98git=E2=80=99 can even give us raw data). Ludo=E2=80=99.