From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Ja7CK1H2X2GRnAAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 09:42: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 mp1 with LMTPS id YEDZJlH2X2E2IAAAbx9fmQ (envelope-from ) for ; Fri, 08 Oct 2021 07:42: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 4CD3114322 for ; Fri, 8 Oct 2021 09:42:09 +0200 (CEST) Received: from localhost ([::1]:57462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYkW8-0002nJ-FY for larch@yhetil.org; Fri, 08 Oct 2021 03:42:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYkW1-0002lv-Vl for guix-patches@gnu.org; Fri, 08 Oct 2021 03:42:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYkW1-0002qu-O9 for guix-patches@gnu.org; Fri, 08 Oct 2021 03:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYkW1-0007C5-Lf for guix-patches@gnu.org; Fri, 08 Oct 2021 03:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50384] [PATCH] Optimise search-patch (reducing I/O) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Oct 2021 07:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50384 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: zimoun Cc: Maxime Devos , 50384@debbugs.gnu.org Received: via spool by 50384-submit@debbugs.gnu.org id=B50384.163367888827605 (code B ref 50384); Fri, 08 Oct 2021 07:42:01 +0000 Received: (at 50384) by debbugs.gnu.org; 8 Oct 2021 07:41:28 +0000 Received: from localhost ([127.0.0.1]:48961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYkVT-0007BA-HS for submit@debbugs.gnu.org; Fri, 08 Oct 2021 03:41:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYkVS-0007Az-9f for 50384@debbugs.gnu.org; Fri, 08 Oct 2021 03:41:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59978) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYkVN-0002K1-28; Fri, 08 Oct 2021 03:41:21 -0400 Received: from [193.50.110.91] (port=39746 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYkVL-0002At-Ds; Fri, 08 Oct 2021 03:41:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <8900fa8c8eef7f72fc97adc2408be26c88de7803.camel@telenet.be> <87tuj0xaja.fsf@gnu.org> <0ec7f0270fcccec730808f9210f074cd5339961f.camel@telenet.be> <87ee9xerac.fsf_-_@gnu.org> <87r1dhj2bk.fsf_-_@gnu.org> <3563a99b37c8ef3b226b7fef25a5afa273c08b6e.camel@telenet.be> <87czouj8m7.fsf@gnu.org> <87h7dwviu7.fsf_-_@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?UTF-8?Q?Vend=C3=A9miaire?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= 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: Fri, 08 Oct 2021 09:41:17 +0200 In-Reply-To: <87h7dwviu7.fsf_-_@gmail.com> (zimoun's message of "Mon, 04 Oct 2021 18:46:24 +0200") Message-ID: <87sfxc55gi.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=1633678929; 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=cUNS0R5IZTHSyec8j7OrHqCayacGR65lz50QRNiGQsU=; b=fX5vMOmebh76JKsynL+EdM6bEXsqs0nUWRsV5uUMgxwVmVNspk2A/yW/Qpjqcz9by2OEKO 5KcB96gWn+l6r+wc6x5G7phXDB1px/LrvYjxoO8uVGk3BjdNWyKaAzC0JK3gcwxNoyKmrE GiW51QugIQEtdePrGKMCyMBTzhtq7Sj6+vA+pRIr9AnWf+wht6L8h+4cuWDEOxAx3tQOs6 YeUjvnWLJg43BaXhqX2o2W/Fuf6qAUd4AvE3nxZwrCz9dMy8j12wE+tE91pDgqiXS+jMpY iKRl+dtlGZTgwf7JmsoLAeKgXOmJwc5iBdvs0Q2yZmdPDpGvOnPtZdJD/5Eq4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633678929; a=rsa-sha256; cv=none; b=GAyafAkioAqKwKqQqnTr/hfNWNireMQR7vYdv1z1qNPScrMx6beBTWbcFp3KhsDG7R6PIp sq9JehJCjucxQmDKAFXDN3YgWk4IE0Iw5KMeSHx3Wq5uJVJvJGt+C+ve2BVRlVojkR5ZlN RqSmjB5MpwXvlpPYye4kJV+VND4SUe6XKn0J8Xkc8otconzDy3gw/ldxHG8Z9vIEBETMWS m5k4/UZEwi2Jc8j+tF8v/T7w/AAgb5z8yoFGpTFjpHTu4HWan+720mZg+OkASkXt+BgsfL QgVSQdW5vs6fyd9ULSNUezxCKzXGNPh76891dyPKkp6BsPDcqzGCVsCpdqZK6w== 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.21 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: 4CD3114322 X-Spam-Score: -2.21 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0KS8CnB6hS3e Hi zimoun, zimoun skribis: > On Mon, 27 Sep 2021 at 18:17, Ludovic Court=C3=A8s wrote: > >> Rough design sketch: >> >> The idea I have in mind would be to have be a sub-record-type >> of , where would contain only the >> metadata currently provided by =E2=80=98fold-available-packages=E2=80=99= (mainly: name, >> version, module/variable). >> >> would have a gexp compiler that looks up the >> package/derivation mapping in ~/.cache/guix and either return it >> directly (cache hit) or look up the corresponding , do all the >> work, and add an entry in the cache (cache miss). > > In this rough design sketch, would this help for > improving the situation of "guix search"? Well, could this cache help > at more place than search-patch? Yes, that=E2=80=99s what I thought: could be used in =E2=80=98fold-available-packages=E2=80=99 & co., so that would kind of unif= y that. Ludo=E2=80=99.