From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mGt2JtUfW2Z3gwEAA41jLg (envelope-from ) for ; Sat, 01 Jun 2024 15:19:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id AWMZIdUfW2Z7TAAA62LTzQ (envelope-from ) for ; Sat, 01 Jun 2024 15:19:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=GmRoPW48; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717247957; 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=430MGpea02XeUm04qKrLVsP6hxH3cohUO5msIqLjK9g=; b=aRReGJE62/JwbdchUgh3yDMcFZe4yaiGeeemdw7BWdGakTkUHdHS3k9EtutfHg6vm4NWUn OC6CVxJTL16qBdVJtaCdtUX9rDaW7il7CU5o7SEAeRhZugCb7abcCO1wDN4gXJYD46GuxN tJVM7oTX/KsQA8ES8AZWoU7i1TScog2zLHOlgp9fLzGjZ+iZ7r96BuL62lbcBNk/os7xj1 lY9rZudigESo3HUTZqwN1FncqiChROYgFBRe60aqCE87Nl1/4Srx83BPr82aeVNljGZ8OI M2rcY3rNl4vQXVvSLZ81xuaoIunlD9XTGg4cjd3n5nfRcrZ86Q9vcbZB3PnrYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717247957; a=rsa-sha256; cv=none; b=A6yPpjlMva2lxWZpGcScoUMXeb8fN7JEPKvO9JVWyaKE+B6CPK/5GFsmHbd/tIg/5e0Po+ ROmCY9DTYYpPDizynVysEfQH6oY9Srt7ne7HtJ6pD5caJHB3vY8KBMoonFceVU5DD+8xXZ bKxEqhvBs9payZqK1K45jDuPmJ4ij/c0mNVNM2iHrb+lG/Hb9iA7KZKaBZ1XZZQuditUXk Jxjc4FRWUEgj2uN9acszgHeMGc8TSeZwCOqXK4A9eupfL/ypbNFJStr2P97+LKiOw9A08U RFMFkYejjQOMbHntpSODobOtVJN1QdUU2v+QCKNt2siRvxUvTsJmRyaOiBvGjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=GmRoPW48; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 5BD6DC445 for ; Sat, 01 Jun 2024 15:19:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDOco-0005Lu-M6; Sat, 01 Jun 2024 09:18:22 -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 1sDOcl-0005Lb-TL for guix-devel@gnu.org; Sat, 01 Jun 2024 09:18:20 -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 1sDOcl-0000Gr-GR; Sat, 01 Jun 2024 09:18:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=430MGpea02XeUm04qKrLVsP6hxH3cohUO5msIqLjK9g=; b=GmRoPW48zIn0G5w0KR5i ryGhw1y7+2ssH/N9lH0zKMzERTalu2ZJkY+Ofk2rpu1FGW/kd+/5f3h1yHc/EcACEQxWUUYrRJt5v QyPI8wFeZER4mA0U2co34UoZun1KI8P5zKEhpjnR2PpdtVjEPZEQYS6pWFITvE5dKHRFY1pBi09D4 hZ8IpPkU3ChLfSf9AvMusH0Cf5u+EVcBfpwUW6laWJffxgKEsgNKEMpdVlVT8VxzfeUL9g5f1GEJ/ G0/Y28XxdnGrpncQhXqHOjKwsCAe9ToRQnQxKNYK2HUrE09VTqOHkKeez+VyOwk6gdYsxc0kAga99 aJ5K/TOZuv9DUA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Richard Sent Cc: guix-devel@gnu.org Subject: Re: Improving the speed of guix time-machine for development environments In-Reply-To: <87cyp8rp2s.fsf@freakingpenguin.com> (Richard Sent's message of "Sun, 26 May 2024 22:00:43 -0400") References: <87cyp8rp2s.fsf@freakingpenguin.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 14 Prairial an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Acacia 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: Sat, 01 Jun 2024 15:18:15 +0200 Message-ID: <87zfs4pzs8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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-Spam-Score: -8.10 X-Spam-Score: -8.10 X-Migadu-Queue-Id: 5BD6DC445 X-Migadu-Scanner: mx11.migadu.com X-TUID: 9h7H/8ZJgmp7 Hi Richard, Richard Sent skribis: >> I think channels listed in channels.scm files should optionally support >> using whatever channel version is already in the user's profile, if >> present. This would significantly speed up entering development >> environments composed of Guix channels. > >> Unfortunately, *I may be delayed every time I enter the development >> environment by several minutes while Guix computes a new derivation >> due to an update in %default-channels*. I understand and share the frustration regarding performance. To address the problem, I would suggest a different route (the problem with the patch you propose here is that it makes things unpredicatable and stateful: you=E2=80=99d end up using whatever commit happens to be alre= ady in a profile). My suggestion would be for =E2=80=98guix pull=E2=80=99 to populate the same= cache that =E2=80=98guix time-machine=E2=80=99 uses. That way, if you time-travel to = a commit you already have in a profile, it would be instantaneous. I started looking into it a while back and there were some complications, but I forgot the details. WDYT? Would this be an improvement for you? Thanks, Ludo=E2=80=99.