]> git.eshelyaron.com Git - emacs.git/commit
Improve performance of 'file-name-case-insensitive-p' for Tramp files
authorJim Porter <jporterbugs@gmail.com>
Thu, 11 Nov 2021 18:34:17 +0000 (19:34 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 11 Nov 2021 18:34:17 +0000 (19:34 +0100)
commit6c9ac53249a1c1b05bbcc8e253f39fa8d1e319f6
treea4e8bde5926b1986043a2fbea5752eadfe5b7e49
parent585e2103df144664921670878fc273eee817b0ba
Improve performance of 'file-name-case-insensitive-p' for Tramp files

Previously, each function in 'tramp-foreign-file-name-handler-alist'
would call 'tramp-dissect-file-name', resulting in it being called
several times whenever 'tramp-find-foreign-file-name-handler' was
called.  Now, functions take the dissected file name to avoid this
duplicated effort.  (Bug#51699)

* etc/NEWS: Announce this change.

* lisp/net/tramp-adb.el (tramp-adb-file-name-p):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-p):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-p):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-p):
* lisp/net/tramp-smb.el (tramp-smb-file-name-p):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-p):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-p):
Accept dissected file names.

* lisp/net/tramp.el (tramp-ensure-dissected-file-name): New function.
(tramp-find-foreign-file-name-handler): Pass dissected file name to
functions.
(tramp-connectable-p): Use 'tramp-ensure-dissected-file-name'.
etc/NEWS
lisp/net/tramp-adb.el
lisp/net/tramp-ftp.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-rclone.el
lisp/net/tramp-smb.el
lisp/net/tramp-sshfs.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el