GNU bug report logs - #66117
30.0.50; `find-buffer-visiting' is slow when opening large number of buffers

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: yantar92 <at> posteo.net, 66117 <at> debbugs.gnu.org
Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers
Date: Fri, 22 Sep 2023 16:10:05 +0300
> Cc: 66117 <at> debbugs.gnu.org
> Date: Fri, 22 Sep 2023 16:02:59 +0300
> From: Dmitry Gutov <dmitry <at> gutov.dev>
> 
> I think variable watchers are mostly for debugging?

It is also okay to use watchers when there's no other way of reacting
to a change.  For example, if we need to do something when some
variable is changed that is exposed to Lisp.

> I was thinking of a straight approach where the base primitives that
> visit a file or kill a buffer update said cache.

Yes, in this case find-file-noselect could update the cache.




This bug report was last modified 1 year and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.