From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Brielmaier Subject: Re: guix package --search slow ? Date: Wed, 15 May 2019 15:48:28 +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]:53298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQuGq-0002IB-D6 for guix-devel@gnu.org; Wed, 15 May 2019 09:48:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQuGp-0002Iv-Hc for guix-devel@gnu.org; Wed, 15 May 2019 09:48:36 -0400 In-Reply-To: <87r28zu9hs.fsf@gnu.org> Content-Language: en-US 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: =?UTF-8?Q?Ludovic_Court=c3=a8s?= , zimoun Cc: Guix Devel 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 build= s 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 :) So something like: $ guix search --simple numpy python-numpy | Fundamental package for scientific... python-numpy-documentation | Documentation for the python-numpy... python-numpydoc | python2-numpy | python2-numpy | python2-numpy-documentation | python2-numpydoc | 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...