From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: guix package --search slow ? Date: Wed, 15 May 2019 17:11:35 +0200 Message-ID: <87h89vycpk.fsf@ambrevar.xyz> References: <87o9447pul.fsf@elephly.net> <87r28zu9hs.fsf@gnu.org> <87k1eryflz.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQvkp-0002KM-Sy for guix-devel@gnu.org; Wed, 15 May 2019 11:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQvZD-0007l9-Pk for guix-devel@gnu.org; Wed, 15 May 2019 11:11:41 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:40011) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hQvZD-0007hX-Jq for guix-devel@gnu.org; Wed, 15 May 2019 11:11:39 -0400 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: zimoun Cc: Guix Devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable zimoun writes: >> For Emacs users, it's what helm-system-packages does. It implements its >> own names+synopses cache. helm-system-packages takes some seconds on >> first start to build the cache; after that you get instant live search! = :) > > You are doing ads for your package ;-) Helm, what else... :p > And what do mean by this comment [2] > > ;; We build both caches at the same time. We could also build just-in-tim= e, but > ;; benchmarks show that it only saves less than 20% when building one cac= he. Here "caches" refer to the internal in-memory caches of helm-system-packages, this has nothing to do with the "guix search..." cache. Poor phrasing, admittedly. :/ > Last, the "slowness" comes from `guix package --search` doing there > [3], I guess. Yes, helm-system-packages relies on "guix search". =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlzcLCcACgkQm9z0l6S7 zH+DmAgAsID4Qn/P8W7i9Rd2l/ha4ICbkDP3GW84TWzO2tv0+YvcUgcElwTDW/NS 9NwyAt/q7rlzwbJtZ9km5mesq7Y10mtBMhrpkoqMCF4PUEw8N3FFm4DCp92qaka/ UdbdPzr5cgGdAIiTGjfziatoPREklRIpzm7fONvUjoVyDXknxr1+Ji6KRIKJaDGw 9zUeOVFLSUwFJgIMHuYHa6nvyQP3wEB11S1l97mKEA9axfKvYdjzpzwmw3U16mpr s19HvPtAVD4tF5BzJdDlkTl/DNDp/2JgL4/BGdHec+eGv/dcnLzDYDXZcupQV6s4 S9ke21f2CaZyQw4mGFC07wV1KbbZ2w== =OmAL -----END PGP SIGNATURE----- --=-=-=--