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#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Fri, 21 Jul 2023 15:39:11 +0300 Message-ID: <83y1j9zbf4.fsf@gnu.org> 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> <874jlxebz5.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8318"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, yantar92@posteo.net, 64735@debbugs.gnu.org, sbaugh@janestreet.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 21 14:39:22 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 1qMpPm-0001y8-A5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jul 2023 14:39:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMpPZ-0000sM-Fm; Fri, 21 Jul 2023 08:39:10 -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 1qMpPS-0000r5-SV for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 08:39: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 1qMpPS-0003JF-JG for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMpPS-00085w-Ep for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 08:39: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: Fri, 21 Jul 2023 12:39: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.168994312931072 (code B ref 64735); Fri, 21 Jul 2023 12:39:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 21 Jul 2023 12:38:49 +0000 Original-Received: from localhost ([127.0.0.1]:60830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMpPE-000855-Uf for submit@debbugs.gnu.org; Fri, 21 Jul 2023 08:38:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMpPA-00084b-IB for 64735@debbugs.gnu.org; Fri, 21 Jul 2023 08:38:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMpP3-0003He-7M; Fri, 21 Jul 2023 08:38:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hyEisAq6Nd4xnGbML/VwTNxtJuSZgWcVONyZWancEI0=; b=SwtOBz6qqWfE jG6koNJ6kI+gASSUBQnFyIsow9Ij5+872PstKmeYt/wi9ACp3/NHtG+RDH3aQeOfRCtjSdcXbF8d8 WtFZ8AkGUajuAGrqK8xdfI0jmGMyJFgd6qvPvMeGRUTn+xT3NX8b21U4up8Y6Yf3qPxGSMnkhA5i0 yGyRL4LYGH9dx4/dn5JraIwpH9CjI4T+sScGOjzM81rCu9ZRwt3CQSr5i06220MFm+eYcQC8qmLdB lauv3L9/IL6ZiX57jjSVjx7iyK3LXr0HxlLXbG+xEX4/S9kgZMOd3dVXJzGCE8EUAr55Ao0Y9rJtP Xta30zchkiDx1XDChAclVg==; Original-Received: from [87.69.77.57] (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 1qMpP2-0005Hq-NH; Fri, 21 Jul 2023 08:38:37 -0400 In-Reply-To: <874jlxebz5.fsf@gmx.de> (message from Michael Albinus on Fri, 21 Jul 2023 13:32:46 +0200) 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:265690 Archived-At: > From: Michael Albinus > Cc: yantar92@posteo.net, dmitry@gutov.dev, 64735@debbugs.gnu.org, > sbaugh@janestreet.com > Date: Fri, 21 Jul 2023 13:32:46 +0200 > > Eli Zaretskii writes: > > >> 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. I know, but when I wrote that disabling file-handlers is inconceivable, I meant remote files, not those other users of this facility. Let me rephrase: running Emacs commands with disabled support for remote files is inconceivable. IMO, if tests against file-name-handler-alist are a significant performance problem, we should look for ways of solving it without disabling remote files. In general, disabling general-purpose Emacs features because they cause slow-down should be the last resort, after we tried and failed to use smarter solutions.