From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: guix package --search slow ? Date: Wed, 15 May 2019 16:31:51 +0200 Message-ID: References: <87o9447pul.fsf@elephly.net> <87r28zu9hs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:32862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQuwu-0005AC-IY for guix-devel@gnu.org; Wed, 15 May 2019 10:32:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQuwt-0003Rd-Ls for guix-devel@gnu.org; Wed, 15 May 2019 10:32:04 -0400 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:36074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQuwt-0003RK-HR for guix-devel@gnu.org; Wed, 15 May 2019 10:32:03 -0400 Received: by mail-qt1-x834.google.com with SMTP id a17so3522511qth.3 for ; Wed, 15 May 2019 07:32:03 -0700 (PDT) In-Reply-To: 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: Guix Devel On Wed, 15 May 2019 at 15:48, Jonathan Brielmaier wrote: > > On 5/15/19 3:34 PM, Ludovic Court=C3=A8s wrote: > > We could probably improve the cold-cache timings by adding synopses and > > descriptions to the package cache that =E2=80=98guix pull=E2=80=99 buil= ds in > > ~/.config/guix/current/lib/guix/package.cache, but that would also make > > that cache bigger. Not sure if it=E2=80=99s worth it. > > Another idea would be to have some kind of simple search which only > includes the package name and maybe the synopsis. So this could go to > the cache and I would assume that a cold-cache search will also be > faster. And as a nice give away, it doesn't include so much scrolling :) `guix package -A` already searches only for the names and uses the cache. >From my opinion, the difference between adding the synopsis or synopsis+description to the cache is similar. Qui peut le plus peut le moins (Who can do more can do less too ;-) > But in general I don't find the search so slow. Sometimes zypper for > example has to refresh the repos and than "guix search" is faster, even > with cold cache... I agree that now the performance are not so "horrible", but even, can we do better? :-) All the best, simon