From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: guix package --search slow ? Date: Tue, 14 May 2019 19:19:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQb5X-0000no-FF for guix-devel@gnu.org; Tue, 14 May 2019 13:19:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQb5W-0000oc-M3 for guix-devel@gnu.org; Tue, 14 May 2019 13:19:39 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:45742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQb5W-0000mi-IJ for guix-devel@gnu.org; Tue, 14 May 2019 13:19:38 -0400 Received: by mail-qt1-x829.google.com with SMTP id t1so11023782qtc.12 for ; Tue, 14 May 2019 10:19:38 -0700 (PDT) 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 Dear, When searching packages with `guix search`, it appears to me slow; especially compared to `aptitude` of Debian. Say on my machine: $ time guix package --search=python-numpy | recsel -p name - name: python-numpy name: python-numpy-documentation name: python-numpydoc name: python2-numpy-documentation real 0m11.864s user 0m1.160s sys 0m0.212s $ time aptitude search python-numpy i A python-numpy - Numerical Python adds a fast array facilit v python-numpy-abi9 - v python-numpy-api10 - p python-numpy-dbg - Fast array facility to the Python language v python-numpy-dev - p python-numpy-doc - NumPy documentation p python-numpydoc - Sphinx extension to support docstrings in real 0m3.219s user 0m0.656s sys 0m0.088s I am not sure to exactly understand how the search works. Basically, a "big" `fold' is done on `%package-module-path' and there is no caching. Right? What should be done to improve the search speed? All the best, simon