1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/doc
Spencer Baugh abc2d39e01 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.
2024-03-23 19:07:49 +02:00
..
emacs Merge from origin/emacs-29 2024-03-23 06:51:40 -04:00
lispintro Fix info-xref-tests 2024-01-13 20:38:34 +02:00
lispref Merge from origin/emacs-29 2024-03-23 06:51:39 -04:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc Use 'regexp-opt' in 'dired-omit-regexp' 2024-03-23 19:07:49 +02:00
translations ; Further copyedits of doc/translations/README. 2024-02-19 15:19:54 +02:00