From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50733: 28.0.1; project-find-regexp can block Emacs for a long time Date: Thu, 23 Sep 2021 23:17:14 +0200 Message-ID: References: <03aa81b5-6077-c35c-1a5f-ec4d867b59ac@yandex.ru> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22127"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) Cc: 50733@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 23 23:18:19 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 1mTW6j-0005Xi-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 23:18:18 +0200 Original-Received: from localhost ([::1]:43488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTW6i-0003ys-1o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 17:18:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTW6U-0003yM-Dh for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 17:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTW6T-0006Kh-T5 for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 17:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTW6T-0004OI-Os for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 17:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Sep 2021 21:18: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.163243185016829 (code B ref 50733); Thu, 23 Sep 2021 21:18:01 +0000 Original-Received: (at 50733) by debbugs.gnu.org; 23 Sep 2021 21:17:30 +0000 Original-Received: from localhost ([127.0.0.1]:56025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTW5y-0004NN-3s for submit@debbugs.gnu.org; Thu, 23 Sep 2021 17:17:30 -0400 Original-Received: from sonic306-21.consmr.mail.ir2.yahoo.com ([77.238.176.207]:41373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTW5v-0004N6-Mb for 50733@debbugs.gnu.org; Thu, 23 Sep 2021 17:17:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1632431841; bh=AY3cqMPSKg5LrD29RJ8dNl31U2kJsiGMJL316GtitiU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=NqwCm0KYYYHADqGY15FJj03pFJqm4RNuHW4aU+h2WpbCh8Abn+bMn+0yryoasBPSxKqvzCoA8knGsosY9ThSaZVTrF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a6O6vfKpyUt0u6Kn65a0OKEv17BwyHPGqUbDFdsxF2PaqsMjz1Qc zCqthKIeKvYTEzSlCSbJdcnPeE6NzfkLJ3eAiPd4h1QIG3RDruNIccCvBysNe.Tx1KATvYE4SSGX t1jPTgAD3GRl60Xhf.e0AuFAHg3LsHV0.6jWh4ntk74iVPBsXFpzO3qPaOnmBVygyqZ_uX6qVBKb aazjvDPxIyNMNbhMt4xhFrJNmb2PllicqEERJpzirv.nV.djpirV9e.miVIaWVusUlYZFc3sHi7b XKgQaKPsi4nfBteuIh2k_MiDuqtBRdyk_blA5ezFmDPj2P0ZPUrnMQZ2kiN_ZWTuxCe8EqYM9r3m UD24_ZetGK7TajtrDc4VGvEqHiIoC9oYP7ci3EY2qUdi93CJrPbGz3fSCQ082hjWMcear5X_VARa hejkRxqO9D5HaLs3itMcBGrgKO2fiHXPXGMkYmI9GTE_MTeSV22EBYCcWpMo4wpPHa9TgfiYwNwN H2Adaymr2_RYZrwXxYIN3GGUNhOZWeUN4kyat2MguE X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Thu, 23 Sep 2021 21:17:21 +0000 Original-Received: by kubenode508.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a650228e3f091b9bcd71fbbe00b65a63; Thu, 23 Sep 2021 21:17:15 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Thu, 23 Sep 2021 02:09:16 +0300") X-Mailer: WebService/1.1.19043 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:215233 Archived-At: Dmitry Gutov writes: > > Thanks for testing. Did the switch to ripgrep help much? > > I wonder if we should advertise this setting and recommendation more > prominently, at least until we get auto-detection. > When I set xref-search-program to 'grep, the search is almost 10x slower. >> Running the same search with ripgrep from the command line takes around >> 6 seconds. > > Is that with an SSD? Yes, it's a fast MacBook Pro from 2017. > > Another thing you can do is set up the additional ignores for the > project. If those big binary files are not something you are > interested in searching and touching, you could add ignore entries for > them. When the vc project backend is in use (default), it is currently > done via .dir-locals.el: the variable is project-vc-ignores, it's a > list of strings that should be globs. See its docstring and the > explanation in project-ignores's docstring. > I sometimes do C-u C-x p g so that I can limit the search to certain file extensions. That helps a little bit. So far, the command that offers me the best performance for this kind of project grepping is `vc-git-grep`.