GNU bug report logs - #78545
31.0.50; project-mode-line is slow because it tries to read files on each update

Previous Next

Package: emacs;

Reported by: Yikai Zhao <yikai <at> z1k.dev>

Date: Thu, 22 May 2025 06:17:05 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #41 received at 78545 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Daniel Colascione <dancol <at> dancol.org>, 78545 <at> debbugs.gnu.org,
 shipmints <at> gmail.com, yikai <at> z1k.dev
Subject: Re: bug#78545: 31.0.50; project-mode-line is slow because it tries to
 read files on each update
Date: Fri, 23 May 2025 03:37:21 +0300
On 22/05/2025 18:53, Daniel Colascione wrote:
> We could also just have the IO functions signal error if called during a mode line update.

The first 'project-current' call might as well happen during the 
mode-line refresh, when the project root is not cached. What's 
problematic is having these calls do I/O every time.




This bug report was last modified 24 days ago.

Previous Next


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