From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50733: 28.0.1; project-find-regexp can block Emacs for a long time Date: Tue, 28 Sep 2021 08:17:24 +0300 Message-ID: <83a6jxl1nf.fsf@gnu.org> References: <03aa81b5-6077-c35c-1a5f-ec4d867b59ac@yandex.ru> <63300a34-e487-02d1-c182-2b84438654d7@yandex.ru> <83k0j6trau.fsf@gnu.org> <838rzmtf00.fsf@gnu.org> <83sfxurr67.fsf@gnu.org> <83ilypsw31.fsf@gnu.org> <83h7e9stbm.fsf@gnu.org> <835yuprx1d.fsf@gnu.org> <2391d2ad6f5d14256480@heytings.org> <83fstqmwgu.fsf@gnu.org> <2391d2ad6f1301eed00b@heytings.org> <83y27ikznt.fsf@gnu.org> <2391d2ad6f7f0febec7c@heytings.org> <83r1dakx1v.fsf@gnu.org> <2391d2ad6f3b9b95bb93@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50733@debbugs.gnu.org, dgutov@yandex.ru, mardani29@yahoo.es To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 28 07:18:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mV5VK-0003Hp-Qu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 07:18:10 +0200 Original-Received: from localhost ([::1]:59264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV5VJ-0000ZH-NS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 01:18:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV5VD-0000Z8-Dy for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 01:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mV5VD-0000jo-6h for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 01:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mV5VC-0004Lb-DG for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 01:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Sep 2021 05:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50733 X-GNU-PR-Package: emacs Original-Received: via spool by 50733-submit@debbugs.gnu.org id=B50733.163280625016672 (code B ref 50733); Tue, 28 Sep 2021 05:18:02 +0000 Original-Received: (at 50733) by debbugs.gnu.org; 28 Sep 2021 05:17:30 +0000 Original-Received: from localhost ([127.0.0.1]:43430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV5Uf-0004Kq-Q3 for submit@debbugs.gnu.org; Tue, 28 Sep 2021 01:17:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mV5Ud-0004Kd-Vo for 50733@debbugs.gnu.org; Tue, 28 Sep 2021 01:17:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56076) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV5UX-0000Co-R9; Tue, 28 Sep 2021 01:17:21 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3278 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV5UX-0007Bx-Dr; Tue, 28 Sep 2021 01:17:21 -0400 In-Reply-To: <2391d2ad6f3b9b95bb93@heytings.org> (message from Gregory Heytings on Mon, 27 Sep 2021 19:36:54 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215728 Archived-At: > Date: Mon, 27 Sep 2021 19:36:54 +0000 > From: Gregory Heytings > cc: 50733@debbugs.gnu.org, dgutov@yandex.ru, mardani29@yahoo.es > > >> Of course a table lookup is O(1) and a search is O(n). If and only if > >> you forget the time it takes to build the table and to keep it up to > >> date. > > > > That time is irrelevant, because it doesn't delay the search. > > > > Of course it does. The most important requirement of any search tool > (regexp or not) is that it must display results that correspond to the > current version of the files. Even a daemon that watches the tree and > calls mkid in the background when files in the tree have changed isn't > enough, the results will regularly be wrong during N seconds (where N > depends on the size of the tree, for example, on my laptop, 30 for a 1 GB > tree). And you always change your files in significant enough ways with such frequency? Then yes, IDUtils is probably not for you, too bad.