From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#50733: 28.0.1; project-find-regexp can block Emacs for a long time Date: Mon, 27 Sep 2021 19:36:54 +0000 Message-ID: <2391d2ad6f3b9b95bb93@heytings.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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50733@debbugs.gnu.org, dgutov@yandex.ru, mardani29@yahoo.es To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 22:13:23 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 1mUx06-0008VG-Im for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 22:13:22 +0200 Original-Received: from localhost ([::1]:50592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUx04-0005gF-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 16:13:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUwQw-0001UO-J8 for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 15:37:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUwQw-0006XQ-7S for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUwQv-0002LT-Vu for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 15:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 19:37:01 +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.16327714189005 (code B ref 50733); Mon, 27 Sep 2021 19:37:01 +0000 Original-Received: (at 50733) by debbugs.gnu.org; 27 Sep 2021 19:36:58 +0000 Original-Received: from localhost ([127.0.0.1]:42897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUwQs-0002LB-Iu for submit@debbugs.gnu.org; Mon, 27 Sep 2021 15:36:58 -0400 Original-Received: from heytings.org ([95.142.160.155]:50524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUwQp-0002Ky-Vr for 50733@debbugs.gnu.org; Mon, 27 Sep 2021 15:36:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1632771414; bh=ohG9LqnPYp9VzBuyeji+OHGuigU36+CwfCb5OUc/WOA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=B2JcXD9CDILy2DnDVsV6WAalMdsDMmYDS3czrtEyE9MibvgBFe3VJXNe82fe57/10 wzyWqmpE+1n9Acw31+3oEIM1NH/zf+RqjipG9//OyByNgI7gmPnIY6uV5Wh3ZPm3yc sYk2WJ5b7qLJN37Gz7UtGm8/kCMW9lx480tb76SfGlANf0PGbePGROi78paeyBtTZJ LueBBWGNAowN36pvVvo5c//cOqfUy2AwrDC4XwpX15HzMj0C/S7suEXaGGe+VgkK/d yNahEXXcJOgo+WJSdIR0s68uV7BxglIgoavan/yy88d6RNVP/T8VAR+XLS5YvZGaZY lGx38OLbJ8yMA== In-Reply-To: <83r1dakx1v.fsf@gnu.org> 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:215706 Archived-At: >> 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).