From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.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 8PuyOEf7AWUGdgAA9RJhRA:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 13 Sep 2023 20:11:20 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:4789::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id 8PuyOEf7AWUGdgAA9RJhRA
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 13 Sep 2023 20:11:20 +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 9898B622E1
	for <larch@yhetil.org>; Wed, 13 Sep 2023 20:11:19 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=CrAXPm3g;
	spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-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=1694628679;
	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:resent-cc:
	 resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=3thjA8phpPJbXWv6yUX3y+eTpXZIAV+/cobGCrMybw8=;
	b=DSsTJgxkT/fXALzILshLc5077OlIFjtfBusm5Q0AnqcqLBnEc/BKB6PMsFAq91QFtoWTDo
	txbCecLW3TOWWI/oeCM15xmF/dXiMp61M4dayvaEy+m22mAgxaXsOGcNYZcavu0LtiKqqt
	SvqBaydHpbE6lovNAQsPdPMWVR+pPyUYakfOnt+MbQfL14msS2MfHJshXTdGp9vMkKU+Sk
	npe66sbERJV/13S4RYC95/4q8mcJwrb3INtm29L5CYrPAqq2T+5OKmUAzWEiU4/zsVlNUh
	NnRubiMQdjLqkMfU3r8RLU1+mGBu2OvAXwZ0BMlHUyic91RkbgpiiIDAe3ghcg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=CrAXPm3g;
	spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=pass (policy=none) header.from=gnu.org
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694628679; a=rsa-sha256; cv=none;
	b=aXmjVRBzJP/csZVWgRMKlL29UpEgWP/qZXiRUkH2e5CLPUwFoekSr6GJ9ophQV1kgheO85
	P1JvwTjnc82+GC622VOQHbN9jBexVazeFv4NBkdEt7rEdM1nefzMzLSm9/UY+kKrQTpeup
	PRkAi/7b+eo0r4O5H1K+5rlf0FKDj5FJjTTP0QCjc9u5cEx9Pla0xpaywUGsqxfIt5G9II
	fsHdZ5pG3bFC9JgBw87hTYUi2YYCJmxuEZEyPUPFhfZLrIGcP15Kyf2Kgxtfc3fOVogWzm
	G8mqaIHtaeeEG4DaYblFx7gWMhN5UEhOJ4roTvr3S4ay0xefkN5SJkbdkRiQ5Q==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces@gnu.org>)
	id 1qgUKJ-0007Hl-7B; Wed, 13 Sep 2023 14:10:59 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qgUKH-0007HP-23
 for bug-guix@gnu.org; Wed, 13 Sep 2023 14:10:57 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1qgUKG-0000xk-QF
 for bug-guix@gnu.org; Wed, 13 Sep 2023 14:10:56 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qgUKM-0003sR-3z
 for bug-guix@gnu.org; Wed, 13 Sep 2023 14:11:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: bug#65720: Guile-Git-managed checkouts grow way too much
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Wed, 13 Sep 2023 18:11:02 +0000
Resent-Message-ID: <handler.65720.B65720.169462865414890@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 65720
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: wolf <wolf@wolfsden.cz>
Cc: Josselin Poiret <dev@jpoiret.xyz>, 65720@debbugs.gnu.org
Received: via spool by 65720-submit@debbugs.gnu.org id=B65720.169462865414890
 (code B ref 65720); Wed, 13 Sep 2023 18:11:02 +0000
Received: (at 65720) by debbugs.gnu.org; 13 Sep 2023 18:10:54 +0000
Received: from localhost ([127.0.0.1]:35997 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qgUKD-0003s5-Tp
 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 14:10:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1qgUKB-0003rr-Fn
 for 65720@debbugs.gnu.org; Wed, 13 Sep 2023 14:10:52 -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 <ludo@gnu.org>)
 id 1qgUJz-0000vz-VB; Wed, 13 Sep 2023 14:10:39 -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=3thjA8phpPJbXWv6yUX3y+eTpXZIAV+/cobGCrMybw8=; b=CrAXPm3gUTQVSoIHo0It
 dujVEAB9jcGUjfAteAjNhmleILF7r1mN8eI6CcyouDv7K0/Og/6EeZun2KZQhISUNgksfr7syNG+3
 27jHO8gy4CpeNwsPfGUmOK/c/F/ryiqRkh0wM3Ki4Me7jUxSISy23BGe+Pz5uwJj7w5ciktokA8OT
 AmzxJ03Lmawxqn8azP3FGpKaJp6RznDFMljQPr40Mm5gCk+HaC7HasyxqTX8i0S8dL6oNgolUy+zw
 AI61eCtvrZVy4KM673AK3KG/yqqmAhfsZrxBzbmqjd8ma95nNNOZNHbQGJhOOyLyA5HghFC+d3Fa6
 cqGP7FB0plg9hA==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
References: <87bkejc7go.fsf@inria.fr> <87fs3tobju.fsf@gnu.org>
 <87tts9uj6x.fsf@jpoiret.xyz> <87msy0ln4m.fsf@gnu.org>
 <87pm2vvibo.fsf@jpoiret.xyz> <87pm2s385m.fsf@gnu.org>
 <ZP8nc1m8rN_34XV-@ws>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Septidi 27 Fructidor an 231 de la
 =?UTF-8?Q?R=C3=A9volution, ?= jour de la Verge-d'or
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: Wed, 13 Sep 2023 20:10:38 +0200
In-Reply-To: <ZP8nc1m8rN_34XV-@ws> (wolf@wolfsden.cz's message of "Mon, 11 Sep
 2023 16:42:59 +0200")
Message-ID: <874jjylza9.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: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-guix@gnu.org
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org
Sender: bug-guix-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: -2.11
X-Spam-Score: -2.11
X-Migadu-Queue-Id: 9898B622E1
X-TUID: NR2/mk73oM/1

Hi,

wolf <wolf@wolfsden.cz> skribis:

> (define (time proc)
>   (let* ((start (get-internal-run-time))
>          (_ (proc))
>          (end   (get-internal-run-time)))
>     (exact->inexact (* 1000 (/ (- end start) internal-time-units-per-seco=
nd)))))
>
> (format #t "Guix: ~ams\nGit:  ~ams\n"
>         (time (=CE=BB () (commit-relation c1 c2)))
>         (time (=CE=BB () (shelling-commit-relation c1 c2))))

=E2=80=98get-internal-run-time=E2=80=99 returns =E2=80=9Cunits of processor=
 time=E2=80=9D used by the
current process (info "(guile) Time").  When shelling out, the process
calls waitpid(2) and does nothing, so naturally its processor time is
close to zero.

=E2=80=98get-internal-real-time=E2=80=99 should give something closer to el=
apsed time.

Ludo=E2=80=99.