From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Fri, 21 Jul 2023 13:32:46 +0200 Message-ID: <874jlxebz5.fsf@gmx.de> References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> <87tttypp2e.fsf@localhost> <837cqu35lw.fsf@gnu.org> <87o7k6pmk3.fsf@localhost> <834jly351p.fsf@gnu.org> <87lefapkdx.fsf@localhost> <831qh230h5.fsf@gnu.org> <87wmyu8mi0.fsf@localhost> <83wmyu1l1k.fsf@gnu.org> <87fs5hemi1.fsf@gmx.de> <83edl11qzn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16272"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dmitry@gutov.dev, yantar92@posteo.net, 64735@debbugs.gnu.org, sbaugh@janestreet.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 21 13:34:33 2023 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 1qMoP2-0003tx-VG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jul 2023 13:34:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMoOd-0005WO-1x; Fri, 21 Jul 2023 07:34:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMoOY-0005SY-W5 for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 07:34:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMoOY-0006MV-Mv for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 07:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMoOY-0006FI-9X for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 07:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jul 2023 11:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64735 X-GNU-PR-Package: emacs Original-Received: via spool by 64735-submit@debbugs.gnu.org id=B64735.168993918523929 (code B ref 64735); Fri, 21 Jul 2023 11:34:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 21 Jul 2023 11:33:05 +0000 Original-Received: from localhost ([127.0.0.1]:60705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMoNc-0006Ds-KX for submit@debbugs.gnu.org; Fri, 21 Jul 2023 07:33:04 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:47715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMoNY-0006DM-U1 for 64735@debbugs.gnu.org; Fri, 21 Jul 2023 07:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1689939168; x=1690543968; i=michael.albinus@gmx.de; bh=4AYvM/GxjOD43VQAQNyrJyHFc1yV12mOYsZPQDtWwxA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ai3V0ZrQIx0/SnVyFvU59KGnk4eUNSvAijrWzSHtxH6CxLkMpB854/rXytVqiVlfuhWXkJy kPy3cCC5MwtgS3TlUcnZCjue4JHvNpoOgC4KHbPU//GKEI14+M7p/Ph0P/NhCvdVDB42anu9H dnShr08TT7Tnj4YrtBGsXsbI5lIXeQ2Pz6tBxwX3zVXG/MJdRRwNe1sU/BDXLANN++90pSk0i zhCT8LUeudahD2vdzbU1dYp4GJdPMQVsGA+o6NTiojnDsKKHgDYa/QLhWeqxEBBhZiUlg+r2N AQ5zwEQI0UhPmV2y49srsqKu/mpKmYgZ3G4VtQVCxWpigfaXh3ig== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.27]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M5wPb-1qFwtP1GBv-007Rl4; Fri, 21 Jul 2023 13:32:48 +0200 In-Reply-To: <83edl11qzn.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Jul 2023 13:46:52 +0300") X-Provags-ID: V03:K1:jujrNfCX3m1C2xpqCl2zIk1mHl8y0EIBWeUWbAbvgQZhtR5RRZh P/RDPfFxus6W2HDer1okrZLfHb0JvVJ2IaE9WLbAHb5rbqoUiRVgMQ1G9OeTuyHxeC4k4Ba yBiLJRqILSTL0/z0UuxwisdFZQpCT2Bs1GBoiJLxtBxnTijTjLOzl2jtGiorCuRtbIlr+dg ljtnuCmOn1AMUYQSQM7AA== UI-OutboundReport: notjunk:1;M01:P0:GdV5zH+8PQo=;8nOyLUXpG/pkB5OvDgIGTFKi7lw A/PnKfomnUQoVeZAL8kXwjrgI1jqr0diErC9R3dmshIfuXq4g/StKewKuc0TZz1pvVByZtloD qwZ+njcweXF2DWI0AJNagZu26htz44t3/CGZ05meswMHR3K3JyhDEG5jOgF7A+xEIVVzEPAS5 64828y3hEjROAh8T1gjdOSVdUKdcRERCt/jGTM2GFEOvi3rktRN98Y9cZTd1fC7qA1lbCYYsV YUWydDKNwqbK0AGlBd0GSDB8rQoVNkK5pe/Gv/gPjjiKy/vQNdRBAOlt2zjLR+wRmwxNXPbAH Vkr27MvPIchhULtooXKeoZS8/CL2+gMxFrYM9REUqyAhb5GPjUtYXm+SQM5/Hn3gQDBGsATW5 S90ZYG0MZK1yz8pZ8FBbQULie2XDw5lYC06ph44sk0lY4NDwLpyzyOLyxSJdEdwtTK9+pEr8s w9Utj3FUNs/Aq64TP/A6xScJuofN6yiSig4mzhbqf+SvwMlHvDfTx2e4xPHbVkbLaVNxjVYCJ 8CXykBa8bpyygAOzmYa3q9Ayiu5Y7LyjX9jkI0Xt3aTehhBhaZVxL98TRvOHqEszqWQTdc+8h E4fCfXX8x1p8nu+mFCD5DAfiAgRBbB+c61izShCYbw9KsMODsfaEts1KKu3wJ2XA78Bc/jjFg +rbziAlSf1zAV2g/JI4HOzYTxsfh4qWOnWCxveC407VXX9f1XJgzMTaceC9PdSA37Vxi7A67H LM6T9pZU32CgsV+GIIO4AF3WlCCFR6qXgsLkBL+eY320sW+MNVLm8S+nRPSfSZaFV3K/17Gy 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265676 Archived-At: Eli Zaretskii writes: Hi Eli, >> However, the fattest regexps in file-name-handler-alist are those for >> tramp-archive-file-name-handler, tramp-completion-file-name-handler and >> tramp-file-name-handler. Somewhere else I have proposed to write a macr= o >> without-remote-files and a command inhibit-remote-files, which disable >> Tramp and remove its file name handlers from file-name-handler-alist. >> Either temporarily, or permanent. >> >> Users can call the command, if they know for sure they don't use remote >> files ever. Authors could use the macro in case they know for sure they >> are working over local files only. >> >> WDYT? > > How is this different from binding file-name-handler-alist to nil? > Tramp is nowadays the main consumer of this feature, and AFAIU your > suggestion above boils down to disabling Tramp. If so, what is left? jka-compr-handler, epa-file-handler and file-name-non-special are left. All of them have their reason. And there are packages out in the wild, which add other handlers. Like jarchive--file-name-handler and sweeprolog-file-name-handler, I've checked only (Non)GNU ELPA. All of them would suffer from the bind-file-name-handler-alist-to-nil trick. There's a reason we haven't documented it in the manuals. And this is just the case to handle it in Lisp code, with without-remote-files. According to the last Emacs Survey, more than 50% of Emacs users don't use Tramp, never ever. But they must live with the useless checks in file-name-handler-alist for Tramp. All of them would profit, if they add (inhibit-remote-files) in their .emacs file. Best regards, Michael.