]> git.eshelyaron.com Git - emacs.git/commit
Speed up ls-lisp
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 Oct 2020 09:41:53 +0000 (11:41 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 31 Oct 2020 09:41:53 +0000 (11:41 +0200)
commit96ec0340716292f577f6dcaa0f8102f1a04e1d5e
tree30e7f40fc143741f2ab0d02d3a24806a6718113f
parent41c4f337c8f798d4700dcd13b73ad4ccdb3257eb
Speed up ls-lisp

This speeds up Dired by 25% in large directories.
* lisp/ls-lisp.el (ls-lisp--time-locale): New defvar.
(ls-lisp-format-time): calculate the locale for formatting times
only once and cache the value in 'ls-lisp--time-locale'.
(Bug#44273)
lisp/ls-lisp.el