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 uHvUHw0wW2E0qAAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 18:47: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 yAJgGw0wW2HASAAAbx9fmQ (envelope-from ) for ; Mon, 04 Oct 2021 16:47: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 4009034F10 for ; Mon, 4 Oct 2021 18:47:09 +0200 (CEST) Received: from localhost ([::1]:53506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXR7M-0002HQ-CF for larch@yhetil.org; Mon, 04 Oct 2021 12:47:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXR7G-0002G2-Kt for guix-patches@gnu.org; Mon, 04 Oct 2021 12:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXR7G-0006dH-CG for guix-patches@gnu.org; Mon, 04 Oct 2021 12:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXR7G-00039k-Aj for guix-patches@gnu.org; Mon, 04 Oct 2021 12:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50384] [PATCH] Optimise search-patch (reducing I/O) Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Oct 2021 16:47:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Maxime Devos , 50384@debbugs.gnu.org Received: via spool by 50384-submit@debbugs.gnu.org id=B50384.163336599612098 (code B ref 50384); Mon, 04 Oct 2021 16:47:02 +0000 Received: (at 50384) by debbugs.gnu.org; 4 Oct 2021 16:46:36 +0000 Received: from localhost ([127.0.0.1]:38214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXR6q-000394-9a for submit@debbugs.gnu.org; Mon, 04 Oct 2021 12:46:36 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:35431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXR6o-00038o-98 for 50384@debbugs.gnu.org; Mon, 04 Oct 2021 12:46:35 -0400 Received: by mail-wr1-f54.google.com with SMTP id v25so21184499wra.2 for <50384@debbugs.gnu.org>; Mon, 04 Oct 2021 09:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=MqekKDiASgzEoBK++qCrEuJrh0HWeHr0HS2Uoq1/1rE=; b=ByCkwBqR/QezPAPTFD2eCTqv9fx4yHhMfwqfdu2jfhpUeWvlWbKYCxPrIDTWYiYOGw xqXJvgr2yrYButmEz8iEzM/QPHbjeXqXzF0eeNhoO88zDDvK+2DIfUauxmBYo5PljVID N1SyYQlYpjW8f05gbXwMtF9ZfTuRIIrTz9nzndo6uRBiQRHoj1Tox3VJhbgtYraTagTB pNQbuZFMdUk3AWBnOU1h3hWI69LRUZRRm86lX3JDQOr0uMme2Xk2/jI4DynK2AY+BaCA QUJI+OEEOs/iJ//TSqBhu2g560BKIHi5ifgW7Ku7zxYe7NB59A2A5dQ/kG9KeN6RdT+V SyNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=MqekKDiASgzEoBK++qCrEuJrh0HWeHr0HS2Uoq1/1rE=; b=avZ3gixOc5+cfc5oKp0sYqLV9YEEic1Py4V/IXmFHnY492RAXNyQZCR8ScP6kfHtfx Uyjc+5mXoLrajvzcAn4ej7khlY80AoSFtgUaRBWcMLZhp5zWDzJANOHZbbQo2Shtyrxl BjlDoHq6JKbumlAiqSfzoiNyaGfeMj9tr7VG33Xhhnxbxdakgw/c93K8MOHPEVxX1N0x C053JPTzpa7+tNhbc0l1XZIZrtyKNAByo7RKFSTN0xx6mO94C/90waV9oBNNI7FbX2mY LYYl8tUXgNvxT/lXHDhJw88odxWqogmU4g2PVM4VBgyV2avIFJQhvgmU1EwoN4KUMH6Z biyQ== X-Gm-Message-State: AOAM5336QQkG2rutsDnfPofpTPBf0IfB/5kXs5qCLLpSeQT/OzkpHaq5 fzdUfwB2K3GeOytLM3CvaT6qeUnCUGU= X-Google-Smtp-Source: ABdhPJyX+eLN9tMgwuEWgcbDkwjfTmJtOPKDFx0d9yrDcoFn7M2HdoJ89Tyg+6Cm4yDWN3UuWCTQiA== X-Received: by 2002:adf:906a:: with SMTP id h97mr15145933wrh.220.1633365987296; Mon, 04 Oct 2021 09:46:27 -0700 (PDT) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id e5sm14897847wrd.1.2021.10.04.09.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 09:46:26 -0700 (PDT) From: zimoun 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> Date: Mon, 04 Oct 2021 18:46:24 +0200 In-Reply-To: <87czouj8m7.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 27 Sep 2021 18:17:36 +0200") Message-ID: <87h7dwviu7.fsf_-_@gmail.com> 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=1633366029; 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:dkim-signature; bh=MqekKDiASgzEoBK++qCrEuJrh0HWeHr0HS2Uoq1/1rE=; b=h0qXX51mKMul6eYuroOK6JaTjL/o+fje9kkY6dmcbJJWlOsUFBDQimXXY4BeqANzWBRFxF y2u0MXIecPfMLrIqjCZmZP+d+SX3IJxR8Jl2ylET7bNhre80YFXRegntRNoBf1Sob63Pj/ abz3PXR/aCS3IuV3WCy7OtlBNVRbysT9rLqjPAji3FNCyzsnz9uX9876Ao4qno0NVFGpUD qEGo3eqcjONDL1duI6HQnBB0Bhyd7EuYai0lKHoqZ2IDgNHiHv87o25cAonkhmc7K0glMk m44ymyIXKGzY0C5NXwTp5Pm8EGXipPM6f2CXR+65c3OP4wpIQOs30MX+6f4nQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633366029; a=rsa-sha256; cv=none; b=qQ7eUb4v7nfSKyBeWaAb8dOi61n77cNVow+JU+Yd6cwKsXkewq8W65ocS0D1lownqS9HC7 vK37rgzN0fgkyfFRf7rM2qwtWA9Nrk7PXskiAGgrOT8SJCfouGSbGmUbAgFa4I8etiMFcs tO17iq7YZL19YIJuThMb6QbMFUGRRhiZjiPU3HqMXMt4wg89lfZe0655QTo6EWzImaddis uSPcF2QIPg0lP5kM2KrCqDkF4CDCF6MMed9998S7S/lkI5nDz6l7tVk2hGvIYJU9nMSZ5i QN/QRtkOhWLeeIN7QdH0341REBn0fw2x2Q6ZGWBF03dlA8hvPJ9xlxFG4gXsUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ByCkwBqR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ByCkwBqR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Queue-Id: 4009034F10 X-Spam-Score: -1.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: Dp7ldas6300H Hi, 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? Cheers, simon