emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Speed up project-kill-buffers


From: tomas
Subject: Re: [PATCH] Speed up project-kill-buffers
Date: Tue, 4 May 2021 08:25:14 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, May 04, 2021 at 01:46:43AM +0300, Dmitry Gutov wrote:
> On 04.05.2021 01:45, Stefan Monnier wrote:
> >Of course, we could also make the check super fast by keeping the
> >"current project" in a buffer-local var, and then just look for buffers
> >which have an `eq` value in that var.  That would be both faster than
> >`file-in-directory-p` and more arguably more correct.
> 
> Until the user changes some project setting and the "current
> project" becomes not current anymore.

All that looks to me like a classical caching problem, with cache
invalidation protocols and things.

(Don't take me too seriously, though. I've no skin in this game).

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


reply via email to

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