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 #38 received at 78545 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: yikai <at> z1k.dev, 78545 <at> debbugs.gnu.org, shipmints <at> gmail.com
Subject: Re: bug#78545: 31.0.50;
 project-mode-line is slow because it tries to read files on each
 update
Date: Thu, 22 May 2025 22:28:07 +0300
> Cc: 78545 <at> debbugs.gnu.org, shipmints <at> gmail.com
> Date: Thu, 22 May 2025 13:21:18 -0400
> From: Daniel Colascione <dancol <at> dancol.org>
> 
> I've been meaning to write a slow hook detector for a few weeks now. Feel free to beat me to it. I figure we can start by just calling each entry in the major hooks with a new run hooks (with args) variant that records times of each and reports anything over a threshold as a warning.

I think that would be a very useful feature.  But it won't find this
particular problem, because project.el doesn't use a hook to update
the mode line in this case.




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.