From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AOk0Hsvg+mAwDQAAgWs5BA (envelope-from ) for ; Fri, 23 Jul 2021 17:31:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UJW/Gcvg+mD8JQAAbx9fmQ (envelope-from ) for ; Fri, 23 Jul 2021 15:31:23 +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 00678D61A for ; Fri, 23 Jul 2021 17:31:23 +0200 (CEST) Received: from localhost ([::1]:44666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6x90-0000si-40 for larch@yhetil.org; Fri, 23 Jul 2021 11:31:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6x8h-0000rT-3e for guix-patches@gnu.org; Fri, 23 Jul 2021 11:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6x8g-000565-7u for guix-patches@gnu.org; Fri, 23 Jul 2021 11:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6x8g-0004Nq-20 for guix-patches@gnu.org; Fri, 23 Jul 2021 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#39258] [PATCH v6 1/2] DRAFT packages: Add fields to packages cache. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jul 2021 15:31: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: Arun Isaac Cc: 39258@debbugs.gnu.org, zimoun Received: via spool by 39258-submit@debbugs.gnu.org id=B39258.162705424816830 (code B ref 39258); Fri, 23 Jul 2021 15:31:02 +0000 Received: (at 39258) by debbugs.gnu.org; 23 Jul 2021 15:30:48 +0000 Received: from localhost ([127.0.0.1]:44333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6x8S-0004NO-5R for submit@debbugs.gnu.org; Fri, 23 Jul 2021 11:30:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6x8P-0004N9-5j for 39258@debbugs.gnu.org; Fri, 23 Jul 2021 11:30:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58728) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6x8G-0004lU-TG; Fri, 23 Jul 2021 11:30:37 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42912 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6x8E-0003kh-Ln; Fri, 23 Jul 2021 11:30:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210715073328.212123-1-zimon.toutoune@gmail.com> <20210715073328.212123-2-zimon.toutoune@gmail.com> <877dhpmjda.fsf@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Thermidor an 229 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, 23 Jul 2021 17:30:31 +0200 In-Reply-To: <877dhpmjda.fsf@systemreboot.net> (Arun Isaac's message of "Sat, 17 Jul 2021 14:01:45 +0530") Message-ID: <87czr9avzc.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=1627054283; 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=s4vv//1gJ1lMwTJDnuBh5vdnk5qKE3heiIT0b47x6Ok=; b=gfVhuxWFc5vSBlXAP2fcuZeytIgn5Jsq8OvqtfTXmX1ZmzVNIzcQJTCzhsffhcsoSJhIo4 9BFsVdXhJq3h/EJpU8NsGGOa6TYdyybuftevZ3NArbloXLNO71qbsMuyUy9fHunezgWJ9E Gf6ClDD25HZJJEDATGBg/BLz0kAeczYlkCfxwGaVtb0OHeYx1I3AYTeoBC+DYor3IoxQLd +f5NiuEcg8BJWoTIDgReVXOSJlB6vtQpxyPrwtii0fbxWtcEHB59HdVvTFc9Bu9mpEN+75 ppn3wf9pfYeLZH9Ht25G2WQ8zeIFka6YOiTu9MvgEx2c+bwKYGYoOgGIZZFcvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627054283; a=rsa-sha256; cv=none; b=WiAxz47mWvM1mP6RmTJ0PoF6rOFdGCHdVytIh7MDPKE72viTwWNOM9WXVUjHtX+wrlDDHC v/kJ3XMbnyiGQ0wqMsUa5Z7GgtPqh3aR8nZN7VEws/+72TfCXUOr7iPutUXBwI8E2I3G9p y6/ed9r8SCCaAQ7ehIUnyVDBlXcM8B+23VYU10TjLWeQ16/I3p8N+CZeguFY2M9apYI8h/ IHdefT0XIJ3K6YJ0/GqqKrQe/jfHOCkjJELZWfy74UTXH3rcGGD9yKxtvN7onVgsTdJpyo UtCvA1xu5CeLNcT3koPBtwkmkJ23oP2hjCMtrQ8vmA+AikYMsUUQmf8aAfkKXA== 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: -2.92 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: 00678D61A X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: i6DoId+o7u5x Hi Arun! Arun Isaac skribis: > Also, why do we need two separate functions---fold-available-packages > and fold-packages? Can't fold-available-packages do everything > fold-packages can and thus totally replace it? The initial goal was for =E2=80=98fold-available-packages=E2=80=99 to be li= ghtweight. Currently, it doesn=E2=80=99t allocate anything; instead, it passes info as keyword parameters, which the callee is free to ignore. That=E2=80=99s why these two procedures have different signatures. One benchmark is =E2=80=9Cguix package -A > /dev/null=E2=80=9D. This shoul= d take ideally 0.5s at most because that=E2=80=99s what=E2=80=99s used by shell co= mpletion (the first time); currently it takes 0.82s on my laptop, though. Thanks, Ludo=E2=80=99.