From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +G1XAXx/R2cIXgAAe85BDQ:P1 (envelope-from ) for ; Wed, 27 Nov 2024 20:22:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +G1XAXx/R2cIXgAAe85BDQ (envelope-from ) for ; Wed, 27 Nov 2024 21:22:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=SRwOGxja; 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"; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732738939; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VJbKPEPFN34B0c11vrUEULXe2BAxSWbrb1EOupt2uDo=; b=AlOCc3/cOTaSLCCnoNIPNXHM75wYNFj/mTy0LxagIPIcjOJDeZWWYmamn4uk7gfuBMQuF2 HoXdsfiRQsCk6WMvisV3R6rutkhfeXMxlR3hxauEKE5trdsc+wCpXv3DWHsQqNpeHfqdds TpfiaOsfbgv5XBUOB4VNEgn+Scu3/xo7vhEK/0eImTNIib/PIpYICzGX97y+L+485F5A8s qMDJ858i1iJBzQt2IvS8HI7XNL2bcvyYYAXsTWArwe+9Fx3vv7OuJOtLOUzGSdEkdapUPc P2XkPkpAvsrFf3eFrnsYHS3V8ND+bkErQ9qW0/aOrboaefFucpoxMB7UcDEgOA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=SRwOGxja; 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"; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1732738939; a=rsa-sha256; cv=pass; b=Vz3WDZV+E2jW8y7eIra+4Hy8L4E6M3RahVwt4AOQs7iUR1J9lvhn292wys7FbAJZeQrWAl Wj7VcoWK4KTL/1wgrY6/NUP28yWLWOclK8nbNUWntLLHGeOJweSG3eEFw1c4fHNI7Kq82X pTbbjk6Y24DYkghg+a9H9GtNULZdswJveLQ1qSmKBb2kJrENFFI8ld7UQhCEK0/wWPHUQy tfWbWX/+/Qit/hGJylBLIbJOLf33ze32m8IUD39czJ+8kel+iMYFRMhDwLcPigZTw1zAFB SULT38c39sx2V//mj6FjFSg2+Q/q3ThBpel772KuSsEVMHKou8uTnq7jFgUZyg== 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 C25E78A1DC for ; Wed, 27 Nov 2024 21:22:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGOXY-0004Ny-I0; Wed, 27 Nov 2024 15:21:36 -0500 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 1tGOXR-0004NO-Is for guix-devel@gnu.org; Wed, 27 Nov 2024 15:21:34 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGOXP-0007Sb-V2 for guix-devel@gnu.org; Wed, 27 Nov 2024 15:21:29 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1732738884; cv=none; d=zohomail.com; s=zohoarc; b=jGCPu8+L5As6p1bH30HK2LgtCAB8qxBdjU3CgSYn2RJ2NgnHrLWD7by4xNXLSRhov2XmSPsoo7IhvCxPp42EZXVJhII1Nwu2em34MtT9bgo142QOwBO5kUoPvHFJAiP0CBR4WSsWu1Leegq7sZ/HJqlmwjiL+n+AnRtrvswkSHE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1732738884; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=VJbKPEPFN34B0c11vrUEULXe2BAxSWbrb1EOupt2uDo=; b=f+c33JhO78g3JLjpzczyYkM7N190kIiujiC/GNPYdxSdZ3BElyg+srPEFhIvMNQjb0UhqB5/KATXehZy31/n1b3uznAtaHOs3GZTqyNMYeb8NAZGYZ6xwnzq1QjlMUrUuaQbXeDDoE328WmzTn6O2XL12q+sWcRyeIHGpR3TA2s= 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= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1732738884; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=VJbKPEPFN34B0c11vrUEULXe2BAxSWbrb1EOupt2uDo=; b=SRwOGxjaNt5xbBxdfg+SwvhZUhNFS+IILxuVE2Gy9eeGBFtz8pRrONk/o9LbsZL5 pWTBVjoROgIRoy4t93k1wzfPMdPWNz06hZCRXMBQbwQAV06CGJWjCL1W4UCYcd15C3B p9ipsE5xonI0Pb76bA8ICE32E7AsY2oCsuy6BUxI= Received: by mx.zohomail.com with SMTPS id 1732738883600754.8959836476978; Wed, 27 Nov 2024 12:21:23 -0800 (PST) From: Ricardo Wurmus To: guix-devel@gnu.org Subject: Caching calls to download-to-store? User-Agent: mu4e 1.12.7; emacs 29.4 Date: Wed, 27 Nov 2024 21:21:20 +0100 Message-ID: <87zflkctrz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.91 X-Spam-Score: -4.91 X-Migadu-Queue-Id: C25E78A1DC X-TUID: ODZ3LT9oVm04 Hi Guix, the CRAN updater downloads every upstream archive three times. The importer memoizes calls to the download procedure, but one download that is out of reach is the very first. It is triggered by package-update/url-fetch in (guix upstream). It uses download-to-store, which will unconditionally fetch whatever URL it is given. I would very much like to parameterize download-to-store, so that we can optionally cache the results of its invocation. What do you think? -- Ricardo