From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SNDZMPHcu2AYSwAAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 22:22:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2DQNLPHcu2D0NQAAB5/wlQ (envelope-from ) for ; Sat, 05 Jun 2021 20:22: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 5302F21E0E for ; Sat, 5 Jun 2021 22:22:09 +0200 (CEST) Received: from localhost ([::1]:39156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpco4-0005nH-CW for larch@yhetil.org; Sat, 05 Jun 2021 16:22:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpcny-0005n9-Tc for guix-patches@gnu.org; Sat, 05 Jun 2021 16:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpcny-0008M0-My for guix-patches@gnu.org; Sat, 05 Jun 2021 16:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpcny-0007be-It for guix-patches@gnu.org; Sat, 05 Jun 2021 16:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48826] [PATCH] scripts: substitute: Cache connection when looking for narinfos. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Jun 2021 20:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48826 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 48826@debbugs.gnu.org Received: via spool by 48826-submit@debbugs.gnu.org id=B48826.162292451429224 (code B ref 48826); Sat, 05 Jun 2021 20:22:02 +0000 Received: (at 48826) by debbugs.gnu.org; 5 Jun 2021 20:21:54 +0000 Received: from localhost ([127.0.0.1]:50121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpcnq-0007bI-Iq for submit@debbugs.gnu.org; Sat, 05 Jun 2021 16:21:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpcno-0007b5-5C for 48826@debbugs.gnu.org; Sat, 05 Jun 2021 16:21:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57670) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpcnj-0008AO-0o for 48826@debbugs.gnu.org; Sat, 05 Jun 2021 16:21:47 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36338 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpcni-0002DD-Jg; Sat, 05 Jun 2021 16:21:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210604070223.10680-1-othacehe@gnu.org> Date: Sat, 05 Jun 2021 22:21:45 +0200 In-Reply-To: <20210604070223.10680-1-othacehe@gnu.org> (Mathieu Othacehe's message of "Fri, 4 Jun 2021 09:02:23 +0200") Message-ID: <874kecnjty.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=1622924529; 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; bh=+ygq7+s7SYkHSjBm+jRMm90UEibo+LDQLyE/WjW69nc=; b=Ga2Ut5CNDAr/XHpa7zL6hz+mD9RAF3f6R+Rvwnc8S61hifjWEmy/SCCAx8yZ/vd18xgg1i v4zMZXgWxNcEu3TR10vBwHCqHRCWRXOExt0VDgoIirgHHxScAoLxo8bkd5jlXKxgZTSGj2 BlzIqfN3alFSN6z3xf3XaQmqOIZ2yAy7ixINHBzXmWs00ngB7nxO0ulpkTxoj3ufotSSCS f8FeUjQ2FWZ+3ULBeL6mPcsVrQWpeL3dllKyR+aC/0Uj8LVmnUyYQ/epiQ4wjOyJBXt/bn kZN8LMYneq9iEJHH6MuYfghxWs0tb1FdwfZua7xrLdNFYIUu/afm5fek8yT3dA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622924529; a=rsa-sha256; cv=none; b=MSU5JjcjkXXl7v3jiTLJ5Snw78ZgHqqCXVsHKm7nqQgWQiqgcwPK3vKYq7/eW+Ht0MxDED shSjxrFZNQFi9OyDxY9mtFLAWKvGMpS/CPuugVLBqkvzmXRaa7ZCi/AvAr/B7KZh9O2wx2 n1qmdmtiSj2yI963/0tnkZCOGtEMGoqIjO12V0NfbaawUwXzWxLBbOfoELQxiJbFm9Ao50 BgiVy/pAKQe/zQAJEwgMlHwiFHOigLFOFvEZNuAIkMukAPggEoAN9j2rtF0D3Vl3EEpkE3 fAmq0od2eIAfkjdl8xhKTbzXcufZui+Ip3kyE2XISmGl0sBQneuDSAoUTiSEVw== ARC-Authentication-Results: i=1; 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-Spam-Score: -1.43 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: 5302F21E0E X-Spam-Score: -1.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: wj8TvGyTW55T Hi Mathieu, Mathieu Othacehe skribis: > The process-substitution procedure is opening two distinct connections. T= he > first one when looking for narinfo by calling lookup-narinfo and the othe= r one > when fetching nar files. > > Cache the connection when looking for narinfos so that process-substituti= on > only opens one connection. > > * guix/scripts/substitute.scm (lookup-narinfo): Cache connection by using > open-connection-for-uri/cached. Good catch, LGTM! Thanks, Ludo=E2=80=99.