GNU bug report logs -
#66117
30.0.50; `find-buffer-visiting' is slow when opening large number of buffers
Previous Next
Reported by: Ihor Radchenko <yantar92 <at> posteo.net>
Date: Wed, 20 Sep 2023 08:53:02 UTC
Severity: minor
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #142 received at 66117 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> > 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':
>
> The so-called "memory" profiler doesn't profile memory usage...
This is annoying... Would be so nice if there were an actual profiler
for consing.
I tried
- (let* ((attributes (file-attributes truename))
+ (let* ((attributes (and nil (file-attributes truename)))
which should effectively eliminate the calls to `file-attributes' from
`find-file-visiting'. The GC time did not change significantly:
916 38% Automatic GC
213 8% + locate-dominating-file
157 6% + abbreviate-file-name
141 5% + inhibit-local-variables-p
120 5% + file-truename
108 4% + dir-locals--all-files
60 2% + file-name-sans-versions
54 2% + insert-file-contents
--
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>
This bug report was last modified 1 year and 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.