From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OHSXOXjbMl+ORwAA0tVLHw (envelope-from ) for ; Tue, 11 Aug 2020 17:55:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ME/yM3jbMl8pBgAAB5/wlQ (envelope-from ) for ; Tue, 11 Aug 2020 17:55:04 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E836940602 for ; Tue, 11 Aug 2020 17:55:04 +0000 (UTC) Received: from localhost ([::1]:54636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5YUJ-0006Tj-7V for larch@yhetil.org; Tue, 11 Aug 2020 13:55:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5YU9-0006SL-EI for guix-devel@gnu.org; Tue, 11 Aug 2020 13:54:53 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:55223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5YU7-0002Mf-2A for guix-devel@gnu.org; Tue, 11 Aug 2020 13:54:53 -0400 X-Originating-IP: 86.246.37.13 Received: from bababa (lfbn-idf2-1-572-13.w86-246.abo.wanadoo.fr [86.246.37.13]) (Authenticated sender: mail@ambrevar.xyz) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id AB3AF1BF203; Tue, 11 Aug 2020 17:54:45 +0000 (UTC) From: Pierre Neidhardt To: Ricardo Wurmus Subject: Re: File search progress: database review and question on triggers In-Reply-To: <87y2ml429i.fsf@elephly.net> References: <87sgcuh8rb.fsf@ambrevar.xyz> <87y2ml429i.fsf@elephly.net> Date: Tue, 11 Aug 2020 19:54:44 +0200 Message-ID: <87364tgja3.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@ambrevar.xyz; helo=relay8-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/11 13:54:46 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=1, PDS_OTHER_BAD_TLD=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: Hqkaa61+G9+Q --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus writes: > Oof. The updatedb hack above takes 6 seconds on my i7-6500U CPU @ > 2.50GHz with SSD. > > I=E2=80=99m not suggesting to use updatedb, but I think it can be instruc= tive to > look at how the file database is implemented there. We don=E2=80=99t hav= e to > use SQlite if it is much slower and heavier than a custom inverted > index. Good call, I'll benchmark against an inverted index. Some cost may also be induced by the Guix store queries, not sure if we can optimize these. =2D- Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl8y22QACgkQm9z0l6S7 zH/XHggAqKNpF8qFs+gb6qRniBC5T75W7EtXkFq8WRcco5Wag0PjAD6NEdSGZRqj XgkoIiiV7amE1JFh7RAWaXPJ7VHhQJ09OhlZ4LkjBh6elkyi6crky8YI7AEGQdPJ 7WM9jH22OJPUD0yCyYNWG9s7ThhyUx5j3am79fyTHqL/L/jiY0Qk6Q+CzLqK71zj mPNtraRDET2Hzsmmgqv0lAEHe9aLYH8Df2m/PDO/wZ4MslKQ+i4YFz99IPqMtWR4 zOyWRHk5OfIeH0H0HP5i9ocYt7w0CwK+fSveRQxdbGaAWLtk+OUqiXr1grnxywRJ jzbom//owiUM9y4xKmhcU3WbEYobRA== =yUO9 -----END PGP SIGNATURE----- --=-=-=--