bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large nu


From: Ihor Radchenko
Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers
Date: Mon, 09 Oct 2023 10:16:14 +0000

Ihor Radchenko <yantar92@posteo.net> writes:

> The main contributor is set_default_internal. I _suspect_ (because we
> have non-linear scaling with the number of buffers - 3x increase in the
> number of files lead to ~6x increase in the run time) that the main
> contributor here is let-binding `case-fold-search' - special per-buffer
> variable with no default value.

My suspicion appears to be correct - removing let-binding for
case-fold-search from `abbreviate-file-name' and
`inhibit-local-variables-p' made them disappear from the top of the
reverse call tree.

Then, considering the ubiquity of let-binding case-fold-search across
Elisp code, speeding up let-binding of special per-buffer variables may
give us performance boost across Emacs.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





reply via email to

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