From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: guix package --search slow ? Date: Wed, 15 May 2019 16:08:05 +0200 Message-ID: References: <87ef505udr.fsf@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQuZx-0007Rf-Py for guix-devel@gnu.org; Wed, 15 May 2019 10:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQuZt-0005Mx-0h for guix-devel@gnu.org; Wed, 15 May 2019 10:08:21 -0400 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:46872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQuZs-0005MU-Oi for guix-devel@gnu.org; Wed, 15 May 2019 10:08:16 -0400 Received: by mail-qt1-x832.google.com with SMTP id z19so3331936qtz.13 for ; Wed, 15 May 2019 07:08:16 -0700 (PDT) In-Reply-To: <87ef505udr.fsf@riseup.net> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Meiyo Peng Cc: Guix Devel Hi, On Wed, 15 May 2019 at 04:22, Meiyo Peng wrote: > > I remember "guix package --search" has always been pretty fast since > this patch series of Ludovic is merged into guix: > https://lists.gnu.org/archive/html/guix-patches/2019-01/msg00254.html. > > Before that, "guix package --search" is slow. >From the message of the pointed patch, only `guix package -A` uses this new cache. If I understand well. I mean, this cache is loaded in the function `fold-available-packages' used by the option `--list-available` but not in the functions used by the option `--search`. Ludo pointed the commit 94aeec0aef03ab44e41bfc3e77c3b623cb3d607c which improves the search by doing directly on the raw Texinfo instead. Maybe you remembered this one. Thank you to pointing me this patch, now I know a bit more about the internals. Not sure to understand well. :-) All the ebst, simon