GNU bug report logs -
#69775
[PATCH] Use regexp-opt in dired-omit-regexp
Previous Next
Full log
Message #8 received at 69775 <at> debbugs.gnu.org (full text, mbox):
> From: Spencer Baugh <sbaugh <at> janestreet.com>
> Date: Wed, 13 Mar 2024 11:01:05 -0400
>
> In my benchmarking, for large dired buffers, using regexp-opt provides
> around a 3x speedup in omitting.
Can you show a recipe for such benchmarking? I'd like to try that on
my systems.
Also, what is the slowdown in the (improbable, but possible) case
where dired-omit-extensions change for each call of dired-omit-regexp?
> 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.
>
> * lisp/dired-x.el (dired-omit--extension-regexp-cache): Add.
> (dired-omit-regexp): Use regexp-opt.
> (dired-omit-size-limit): Increase, since omitting is now faster.
I'm okay with these changes, but:
. the change in the default value of dired-omit-size-limit should be
called out in NEWS
. please document this variable in the dired-x.texi manual, where we
document all the other variables relevant to dired-omit mode.
. the doc string of dired-omit-size-limit is embarrassingly
unhelpful, so bonus points for fixing that as well
Thanks.
This bug report was last modified 1 year and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.