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 ms11 with LMTPS id CPGHLtZ8mF/eSQAA0tVLHw (envelope-from ) for ; Tue, 27 Oct 2020 20:02:30 +0000 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 UHdeKtZ8mF8jfAAAbx9fmQ (envelope-from ) for ; Tue, 27 Oct 2020 20:02:30 +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 7DB4F94053B for ; Tue, 27 Oct 2020 20:02:29 +0000 (UTC) Received: from localhost ([::1]:60844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXVAq-0003o2-Dx for larch@yhetil.org; Tue, 27 Oct 2020 16:02:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXVAQ-0003n9-Mh for bug-guix@gnu.org; Tue, 27 Oct 2020 16:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXVAQ-0000y5-9C for bug-guix@gnu.org; Tue, 27 Oct 2020 16:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXVAQ-0006Ft-7C for bug-guix@gnu.org; Tue, 27 Oct 2020 16:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44254: Performance of package input rewriting Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Oct 2020 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44254 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lars-Dominik Braun X-Debbugs-Original-Cc: 44254@debbugs.gnu.org, bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160382887823980 (code B ref -1); Tue, 27 Oct 2020 20:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2020 20:01:18 +0000 Received: from localhost ([127.0.0.1]:45964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXV9i-0006Ei-3O for submit@debbugs.gnu.org; Tue, 27 Oct 2020 16:01:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:48522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXV9g-0006EX-NE for submit@debbugs.gnu.org; Tue, 27 Oct 2020 16:01:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXV9g-0003Js-6E for bug-guix@gnu.org; Tue, 27 Oct 2020 16:01:16 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXV9Z-0000rC-Oy for bug-guix@gnu.org; Tue, 27 Oct 2020 16:01:15 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1603828588; cv=none; d=zohomail.com; s=zohoarc; b=dq4lcCRXUdKFlRawbQxJJgqtjUsCy8YfMZn75jHpx/05kaNNDPuI0FdfP1sXNPdMM1bBNiPcf2HMi/Ok3a/I5Fv5ytBOthlQmgL1mtZpnWUHoHb9ljGEK6pQCxF5D7mhJaQVaW/YMRuxMqVu6k1nP7mlB9saUeprJkzhBtELAIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603828588; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=SV5OcI/AzP82xPPenQ0FMSSkzZXd4LpsUEpu8feu7YE=; b=B+nxWBUtaTjWrcfjhy/AlY/YGKDfghomyiliapUhuZDLDwyfNNb5YDwq2JkHW6Xoh67MxMNFx2DUaXnjv5aSugkJLXWhjbNW7snu9gPo8ocEB1QFR0z36eTrZ/ZI7bTjPLQqSP6vyuN3tvL3Bvwl1pcqKTA7TbdlMyn47ttXI28= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1603828588; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=SV5OcI/AzP82xPPenQ0FMSSkzZXd4LpsUEpu8feu7YE=; b=G3gBMhUngfKPi/iwMk8rlrae+oVydneMF80PouHzDc/GVaJ31P2gXbiSJPmdbxCx oQxoRIawVJ1pq79NlmC/fflxjhovZZttWCGxu1OZAh5ih/e6BCNApmPN93+T5sJsml3 B5ODRx8zcqAHdqTcHaD9gYH836e/oNzSkF8jMOq0= Received: from localhost (p54ad4da6.dip0.t-ipconnect.de [84.173.77.166]) by mx.zohomail.com with SMTPS id 1603828586108191.86356554257964; Tue, 27 Oct 2020 12:56:26 -0700 (PDT) References: <20201027132614.GB3081@zpidnp36> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus In-reply-to: <20201027132614.GB3081@zpidnp36> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 27 Oct 2020 20:58:14 +0100 Message-ID: <87imav1lwp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 16:01:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44254@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=elephly.net header.s=zoho header.b=G3gBMhUn; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: nMH4WbLH0lEF Lars-Dominik Braun writes: > this issue is similar to https://issues.guix.gnu.org/41702, but I=E2=80= =99m not sure > it=E2=80=99s exactly the same. For guix-science I=E2=80=99m trying to pro= vide some packages > like python-jupyterlab, which depend on a mix of packages from guix prope= r and > newer versions of packages already included in guix proper. Thus I need to > rewrite inputs of the former to the latter. (Because Python only propagat= es > dependencies and thus collisions would occur.) > > Previously I have been doing this using package-input-rewriting, but star= ting > an environment containing python-jupyterlab alone took about 20s (warm ca= ches, > all derivations in the store). Manually rewriting inputs by inheriting and > alist-delete=E2=80=99ing brings this down to 3s, which is pretty signific= ant. Could you show us a concrete example? Input rewriting is recursive and will traverse the whole package graph by default, even if you *know* that, say, GCC doesn=E2=80=99t need to be rewritten. For the more generic =E2=80=9Cpackage-mapping=E2=80=9D you can provide a = =E2=80=9Ccut?=E2=80=9D procedure to determine when to stop recursion. Perhaps this would make things faster in your case? --=20 Ricardo