From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Speed up project-kill-buffers Date: Tue, 4 May 2021 08:25:14 +0200 Message-ID: <20210504062514.GA12697@tuxteam.de> References: <87mttcgnke.fsf@posteo.net> <477b600f-a69c-179a-20e7-db60c2539599@yandex.ru> <5bfba886-a5f2-559c-675f-45b55812f610@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23596"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 04 09:01:27 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldp3f-0005y2-6C for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 09:01:27 +0200 Original-Received: from localhost ([::1]:45848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldp3e-0000g8-7Q for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 03:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldoUz-0006lz-VY for emacs-devel@gnu.org; Tue, 04 May 2021 02:25:39 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:46433) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1ldoUl-0004DW-KN for emacs-devel@gnu.org; Tue, 04 May 2021 02:25:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=ekIH9nwrsURpycPOvfp+TgCHuYEN+ldls/z+dU4sCw0=; b=ToK7OgeETBBN8HmlO/JTXaLxNBHlbM+tle/yKMsJ0QOH9pVwTngEARHOYB9/19x8f/mn8frGdn/j54aL8pEITz/KYWOJ/uKZi7s3erGlUYEK2ngG+NQbZbS7+BsvhQZhged3HiyW5mvxwNpL0cVFPJNxwyMprQON22HIAmCJ0YCWB/TiG6qD08kz7JxwSt0Zun7hZMr9HpChWzoSMYxFj9rhsCuY/hZtJJz+SttWvR+rvomdvTA82KRrpR4aEPCS8oul2Cg6tNm5odqgKjXzVfSG91e57Kbp4g53w1EopaevEmXSABhADxbLjwsXp0oIDqE9PqItGHGKaIBySug4sw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ldoUc-0003Li-An for emacs-devel@gnu.org; Tue, 04 May 2021 08:25:14 +0200 Content-Disposition: inline In-Reply-To: <5bfba886-a5f2-559c-675f-45b55812f610@yandex.ru> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268858 Archived-At: --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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 --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmCQ6MoACgkQBcgs9XrR2kaxwwCfVtdkrq3GuaXXb2MQJuL3osVJ 5QAAn3MFdtWLnWmlH4n0O68JJV3+zQVW =i5O8 -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--