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: Sun, 08 Oct 2023 11:25:20 +0000

Dmitry Gutov <dmitry@gutov.dev> writes:

> On 08/10/2023 12:00, Ihor Radchenko wrote:
>> I am not sure if we really need to squeeze the
>> performance yet further from `find-buffer-visiting' - `file-attributes'
>> is taking pretty much no time:
>
> If file-attributes is the main source of consing, it could be the reason 
> for the line
>
>    924  36%   Automatic GC

No, the main source of consing, according to the memory profiler, is
`inhibit-local-variables-p':

    170,592,016  49% + inhibit-local-variables-p
     45,619,488  13% + string-match
     28,171,152   8% + insert-file-contents
     26,066,069   7% + file-name-sans-versions
     18,699,245   5% + file-remote-p

The full memory profile is attached.

Attachment: mem-profile-w-patch
Description: Binary data

-- 
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]