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: Eli Zaretskii
Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers
Date: Sat, 07 Oct 2023 14:24:02 +0300

> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: dmitry@gutov.dev, 66117@debbugs.gnu.org
> Date: Sat, 07 Oct 2023 11:08:10 +0000
> 
> Eli Zaretskii <eliz@gnu.org> 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.





reply via email to

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