emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ido-switch-buffer is slow with many buffers; others are fast


From: Stefan Monnier
Subject: Re: ido-switch-buffer is slow with many buffers; others are fast
Date: Sat, 14 Nov 2020 18:00:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> (setq-default case-fold-search t) (benchmark-run 1000 (string-match "" ""))
>
> is about 2000x faster than
>
> (benchmark-run 1000 (let ((case-fold-search t)) (string-match "" "")))
>
> It seems this isn't (directly) related to my configuration, because a
> fresh Emacs doesn't have the issue. Instead, it's something about my
> running, 1000-buffer Emacs... not sure what would cause this or how to
> fix it.

Hmm... I think you'll need the use profiling to get to the bottom
of it.  I'd of course that with `profiler-start`, but there's a chance
that you'll have to do the profiling at the level of the C code to
better figure out what's going on.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]