From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EJb1HXbxY2E4zAAAgWs5BA (envelope-from ) for ; Mon, 11 Oct 2021 10:10:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GHPoGHbxY2F9VQAA1q6Kng (envelope-from ) for ; Mon, 11 Oct 2021 08:10: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 858BB3685E for ; Mon, 11 Oct 2021 10:10:29 +0200 (CEST) Received: from localhost ([::1]:52886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZqOC-0001m3-Df for larch@yhetil.org; Mon, 11 Oct 2021 04:10:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZqNo-0001la-0p for guix-patches@gnu.org; Mon, 11 Oct 2021 04:10:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZqNn-0006HE-65 for guix-patches@gnu.org; Mon, 11 Oct 2021 04:10:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZqNm-0005Lc-SI for guix-patches@gnu.org; Mon, 11 Oct 2021 04:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#39258] 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, 11 Oct 2021 08:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39258 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 39258@debbugs.gnu.org Cc: Maxime Devos , 50384@debbugs.gnu.org Received: via spool by 39258-submit@debbugs.gnu.org id=B39258.163393980120542 (code B ref 39258); Mon, 11 Oct 2021 08:10:02 +0000 Received: (at 39258) by debbugs.gnu.org; 11 Oct 2021 08:10:01 +0000 Received: from localhost ([127.0.0.1]:56348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZqNl-0005LB-5R for submit@debbugs.gnu.org; Mon, 11 Oct 2021 04:10:01 -0400 Received: from mail-qv1-f49.google.com ([209.85.219.49]:44598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZqNj-0005Ko-4v; Mon, 11 Oct 2021 04:09:59 -0400 Received: by mail-qv1-f49.google.com with SMTP id v2so1035025qve.11; Mon, 11 Oct 2021 01:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tF0jofKwjLZe58b2PzbjtdbloibShajG9H42X+OcoVI=; b=JLdoJF5p3sKj7xLnIEpZ7awq697EwYlVuaItltteoani0UGi/wZfM7lBeoPX0gtmuL SwXGnT7RQDoWDYMuDBDsCq4n4iWUDzmwMiI45jVRdo2EgQp6k7QBaFdRvx6/fjq1EK3n OoQvl0bMFjiUMeTAVxRdf4nudwMihP1CfIYkr/ROEjAcCodo/nKv2uaAZO6jx/YWFA8R pe3F/XxXCveg9dOrU0a/tXFGCHQobzABPHBeN15+ztzJigmjVm+8WEAUXIZtjdX/nwL3 1fBtCoA/uMgOPGpW66qWG//U6aMadB7VNY4UaL1Ed5KQ5jDUs8coaApVqaOdJ2F2gl61 d4Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tF0jofKwjLZe58b2PzbjtdbloibShajG9H42X+OcoVI=; b=eJ0O1xO2LXlsSLbqNQkonKRHQ8cQEGbVvuy0IKijkbzy3gJ+POK0a5mQu6UMrhYdwr ojRl85z+aSUhuKtdsRulBUNYSYKrHTOyJ30uzdyXVcxeblKY15pPfaEN8kejHg9i8Ush VcXNV8mrdYCNpq8bt+2Ggwm+c63S6y1c54kd6SS0iCNsXaPe4SlORQOZouv3esUONpFw Edlw6jXyE1QVnlHX1AFZRjAMBIg+xYSL0JynWSCueJOG0/2pSlLZjB2UKdRplPhx+7ar nocZZs5x4XGTFnlUyHPBsxF+R+2uXg1U4aEHnNJPTUgfyHfpluAISkd66+iGidPGOgBh Zc3g== X-Gm-Message-State: AOAM530fM3MfZPlzNRuazfYIJ5SNtM5SxKq7o13iMd54T9LRxyTPFuPd 3JiHasKM27kUZFJKXU9daoEP0tnI6YSJKVWJYxk= X-Google-Smtp-Source: ABdhPJzUqTwpNhmhHATMzSqH9yWvbPMnfHdw0LKR5xrWUm+XA38JkwlZW/ESBhcqJjYOlQJwcy3YX8DaJAL6CZ/KH/0= X-Received: by 2002:ad4:5f48:: with SMTP id p8mr21781530qvg.39.1633939793687; Mon, 11 Oct 2021 01:09:53 -0700 (PDT) MIME-Version: 1.0 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> <87sfxc55gi.fsf@gnu.org> In-Reply-To: <87sfxc55gi.fsf@gnu.org> From: zimoun Date: Mon, 11 Oct 2021 10:09:42 +0200 Message-ID: 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=1633939830; 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=tF0jofKwjLZe58b2PzbjtdbloibShajG9H42X+OcoVI=; b=cyWbz1HrwTjjwfoFFfBHsQP0JiQgodgJaKHOq8+4cgW5fv/5MJ+PRZCO2qmqviH3+t77RW r20lhuhEjZvJditLLE33RdAgcQiro1gE3z2DWBPr2Rvgv8aBTBOf+aSzh4b2N4+T6ms01N 52Pf/gDoZ9tnXETiM86ZqkNscQyNbWdn4FmhCfnTR+yTkRCjf9ifS5pbVQ0r1gcC73+joj 3dSduiAG61opfADyJWemeT04vyZVQYiEMc6ZsbbKmhbSE6ks01hrK88HPyHc1nCNKth1rB zt8j71MO/tM5Nbbh+8Y+qQZI7UBLz/xseirDSRtouau3oRvrW08VN7EywL+laA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633939830; a=rsa-sha256; cv=none; b=tuRMIfM08xIEHO8MTTSVhOMV0YzIzCQTru0EiPSUPUk3B2+EoURwnERYs9UCFm/9j9UVvO ZQ7xIVAYNmcV0zgt9oINqHmWxOOqn+5u1TfD+duvteCxCtJMtClNEE+m83hVssg2E/SdSj KPO/DMOKEXK9Cr5fCY8km56OUfgRTMwYXBJBhpD6s212qf+JwoLg0ZuEK0tr7FZavVnmN5 yQLfIobqc3nVWLYmWt/7wWeb2LvqmGi00HCImDr8uchozY85f65bHmRqfqpiZKo7JDf6xF WQAox2qnQ4OPFylVz+2FQlXz8uXX5KfNFN8zY1IXYCytlmc8j459rpWIrf3lXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JLdoJF5p; 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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JLdoJF5p; 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: 858BB3685E X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: v9FBEQSgntWb Hi Ludo, On Fri, 8 Oct 2021 at 09:41, Ludovic Court=C3=A8s wrote: > 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 un= ify that. Therefore, do we agree that the cache /lib/guix/package.cache should be extended? Because the v3 adding an extra cache [1] shows improvements of "guix search" and v4 moving the extra fields to the regular cache [2] shows the same improvements for searching and in addition improves this cache generation. The issue with v4 is the field 'license'. And v6 is an attempt to by-pass that (keep the regular cache and only read on-the-fly the required information); but because of this, I guess: (module-ref (resolve-interface module) symbol) it is slower! 1: 2: 3: All the bests, simon PS: For cross-reference, discussion originally happened on .