]> git.eshelyaron.com Git - emacs.git/commit
Improve performance of `file-truename' (bug#70036)
authorIhor Radchenko <yantar92@posteo.net>
Tue, 30 Apr 2024 11:27:04 +0000 (14:27 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:33:47 +0000 (18:33 +0200)
commit7af1137af5ab346beb3f093efea7400b10f5a110
tree81b1711cf3ba9ff19e9806f813860a4dfb61cccc
parent97b8d1a8efefaa8947bc15e537c976a6f4a9f0a5
Improve performance of `file-truename' (bug#70036)

* lisp/files.el (file-truename): Avoid repetitive calls to
`file-name-nondirectory'.  These calls contribute
significantly to CPU time.  See the benchmarks in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70036#47

(cherry picked from commit bf00762745c07816e7a9c64e0fce037039852971)
lisp/files.el