From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: guix package --search slow ? Date: Wed, 15 May 2019 20:32:24 +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]:56732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQyhj-00012J-T7 for guix-devel@gnu.org; Wed, 15 May 2019 14:32:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQyhj-0000Rm-2g for guix-devel@gnu.org; Wed, 15 May 2019 14:32:39 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:42276) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQyhi-0000Om-5K for guix-devel@gnu.org; Wed, 15 May 2019 14:32:38 -0400 Received: by mail-qt1-x82a.google.com with SMTP id j53so828352qta.9 for ; Wed, 15 May 2019 11:32:36 -0700 (PDT) In-Reply-To: <87r28zu9hs.fsf@gnu.org> 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 Hi, My bad ! On Wed, 15 May 2019 at 15:34, Ludovic Court=C3=A8s wrote: > The warm-cache timings are comparable though, which I think is good. > :-) `aptitude search` is not equivalent to `guix package --search` but to `guix package --list-available`. The `aptitude` equivalence should be `aptitude search '?term(numpy)'` And now, Guix is better. ;-) $ time guix package -s numpy real 0m7.924s user 0m1.240s sys 0m0.144s $ time guix package -s conduit real 0m0.758s user 0m0.796s sys 0m0.044s compared to: $ time aptitude search '?term(numpy)' real 0m7.393s user 0m1.556s sys 0m0.628s $ time aptitude search '?term(conduit)' real 0m1.824s user 0m1.352s sys 0m0.464s However, I still think that a SQL caching file containing also descriptions should improve the searching experience with cold cache. Thanks! Now I have better understood some internals. :-) All the best, simon