From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2HBENgnqw2DDUwAAgWs5BA (envelope-from ) for ; Sat, 12 Jun 2021 00:56:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aFCiMQnqw2B0FQAAbx9fmQ (envelope-from ) for ; Fri, 11 Jun 2021 22:56:09 +0000 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 8F2271DDEA for ; Sat, 12 Jun 2021 00:56:09 +0200 (CEST) Received: from localhost ([::1]:48246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrq4O-0005fL-Dn for larch@yhetil.org; Fri, 11 Jun 2021 18:56:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrq4I-0005er-Fr for guix-patches@gnu.org; Fri, 11 Jun 2021 18:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrq4I-0006us-2z for guix-patches@gnu.org; Fri, 11 Jun 2021 18:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrq4I-0003vt-3L for guix-patches@gnu.org; Fri, 11 Jun 2021 18:56:02 -0400 Subject: bug#48853: [PATCH] profiles: Move some of the work to the build side. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 11 Jun 2021 22:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48853 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48853-done@debbugs.gnu.org Mail-Followup-To: 48853@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 48853-done@debbugs.gnu.org id=D48853.162345213915085 (code D ref 48853); Fri, 11 Jun 2021 22:56:01 +0000 Received: (at 48853-done) by debbugs.gnu.org; 11 Jun 2021 22:55:39 +0000 Received: from localhost ([127.0.0.1]:40081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrq3u-0003vF-FH for submit@debbugs.gnu.org; Fri, 11 Jun 2021 18:55:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrq3m-0003uw-HV for 48853-done@debbugs.gnu.org; Fri, 11 Jun 2021 18:55:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49472) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrq3h-0006O8-1Z for 48853-done@debbugs.gnu.org; Fri, 11 Jun 2021 18:55:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45946 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrq3W-0002AC-8z for 48853-done@debbugs.gnu.org; Fri, 11 Jun 2021 18:55:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210605210856.10481-1-ludo@gnu.org> Date: Sat, 12 Jun 2021 00:55:10 +0200 In-Reply-To: <20210605210856.10481-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 5 Jun 2021 23:08:56 +0200") Message-ID: <875yyk3tbl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623452169; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: 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; bh=wJdjf9xzzXvC0Q2gl30xmbv6Ys0Qesd3LYFSCjOvk28=; b=Sf/cb04Jz4AOgu6nmEk4RNy/gWC39I/LMKQznPWT09vRSdSKa4PCLJetnIzq2++Wx7+IPA BY2kQKFlnEGUg2mx+drvmsZuDsTvX54hRUlV2l5yzUHR8mM4Pqu4ZBSxuZDAEDrSkvKeTK SYIz75BMsouRhk4yJkNv1yTNo85L1HP+nThkznOUImrDRLrAN+pyxkVtI4DkNgbte1cRx7 i++MonIM3aq4q9VFjXQPf34M/NSkGgOSU0CXfZwDsyNgebo3ftrVKtbftfJfzMWql5HqYT BTcGWeHUz4CfXPdMcmKp899+MrfNVjYP9VMvefLVNKbk54R5VOc26pH5E6lBuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623452169; a=rsa-sha256; cv=none; b=UM+YZVP1PDzGsnIA/NHNv69KfEakEXo5kpTbmaWnVsvvqObOkEKZsF6Dy1oBSxOTb+bgf/ e6WwQA2niiilH8DgtKbZ4oO1pxqTci2mSQCkfiMcTWVXj8Z4hm3X+tOHAopvdG9c9on3oa Jbq5Ns0qxY0e8LB8tC9AhsZelNFjL7HkfyrFVqZ7lZyytk3d3PyROrPuvm51SCCDUUwo0q ufTYbY/YqMxjcL1IS53xaOFPHtzsEK2Z5gKxLRdOmk85LS7TGOa6BsE1A1ukZZ7Ptokx+w IlWFMWXjCjqCEgJqVapLEwDdI8dYfgIkpPZMawWzMnLdKPfu3n9+UwDfq7K8nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8F2271DDEA X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: McxVhDRroj6D Ludovic Court=C3=A8s skribis: > When running: > > guix environment --ad-hoc gnome --no-grafts --search-paths > > this reduces wall-clock time by ~5%. The number of object cache lookups > goes down from 96K to 89K. (Note that 'gnome' is an interesting example > because it has many propagated inputs, which themselves have propagated > inputs too, which would lead to a long input list and a long manifest in > the 'profile-derivation' gexp.) > > * guix/profiles.scm (profile-derivation)[inputs, search-paths]: Remove. > [extra-inputs]: New variable. > [builder]: Adjust call to 'build-profile'. > * guix/build/profiles.scm (manifest-sexp->inputs+search-paths): New > procedure. > (build-profile): Remove 'inputs' parameter; make 'manifest' the 2nd > positional parameter and add #:extra-inputs. Call > 'manifest-sexp->inputs+search-paths' to obtain 'inputs' and > 'search-paths'. > --- > guix/build/profiles.scm | 86 +++++++++++++++++++++++++++-------------- > guix/profiles.scm | 25 ++++-------- > 2 files changed, 64 insertions(+), 47 deletions(-) Pushed as 8cef92d0633850d97c1a1d4521812268f56672be.