diff options
author | Spencer Baugh <sbaugh@catern.com> | 2024-03-16 17:11:24 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-03-23 19:07:49 +0200 |
commit | abc2d39e0102f8bb554d89da3c0ffe57188220ff (patch) | |
tree | 46e800583c4356def8ca045b459b2206a059f55d /test/lisp/emacs-lisp/find-func-tests.el | |
parent | 8d7a3ed3495968fd3e95a6126e7c23e25b7c495f (diff) | |
download | emacs-abc2d39e0102f8bb554d89da3c0ffe57188220ff.tar.gz emacs-abc2d39e0102f8bb554d89da3c0ffe57188220ff.tar.bz2 emacs-abc2d39e0102f8bb554d89da3c0ffe57188220ff.zip |
Use 'regexp-opt' in 'dired-omit-regexp'
In my benchmarking, for large dired buffers, using 'regexp-opt'
provides around a 3x speedup in omitting.
'regexp-opt' takes around 5 milliseconds, so to avoid slowing
down omitting in small dired buffers we cache the return value.
Since omitting is now 3x faster, increase 'dired-omit-size-limit'
by 3x. Also, document 'dired-omit-size-limit' better.
* doc/misc/dired-x.texi (Omitting Variables): Document
'dired-omit-size-limit'.
* etc/NEWS: Announce increase of 'dired-omit-size-limit'.
* lisp/dired-x.el (dired-omit--extension-regexp-cache): Add.
(dired-omit-regexp): Use 'regexp-opt'. (Bug#69775)
(dired-omit-size-limit): Increase and improve docs.
Diffstat (limited to 'test/lisp/emacs-lisp/find-func-tests.el')
0 files changed, 0 insertions, 0 deletions