Subject: Re: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers

From: Ihor Radchenko <[email-masked]>
Date: Sat, 07 Oct 2023 11:43:38 +0000

Eli Zaretskii <[email-masked]> writes:

>> Eli Zaretskii <[email-masked]> writes:
>> 
>> > So in C this is:
>> >
>> >   list2 (INT_TO_INTEGER (s.st_ino), INT_TO_INTEGER (s.st_dev));
>> 
>> But how to get `s'? Do you mean that we should re-run `sys_fstat' on
>> every buffer? That's slow (query to FS), isn't it?
>
> No, it's very fast, at least on Posix hosts.  But if we decide it
> isn't fast enough, we can record that in the buffer when the file is
> visited.

I am mostly concerned about network FS, where any file operation can be
slow.

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