GNU bug report logs - #76609
31.0.50; The 0.1s repeat timer is very CPU-intensive; it might be a bug?

Previous Next

Package: emacs;

Reported by: Eval Exec <execvy <at> gmail.com>

Date: Thu, 27 Feb 2025 13:57:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Eval Exec <execvy <at> gmail.com>
Cc: 76609 <at> debbugs.gnu.org
Subject: bug#76609: 31.0.50; The 0.1s repeat timer is very CPU-intensive;  it might be a bug?
Date: Thu, 27 Feb 2025 17:37:33 +0200
> From: Eval Exec <execvy <at> gmail.com>
> Date: Thu, 27 Feb 2025 23:10:35 +0800
> Cc: 76609 <at> debbugs.gnu.org
> 
> > What timers really need to run 10 times a second?
> 
> I'd like to create a timer to dynamically update the tab bar, similar to the effect shown in this video:
> [https://imgur.com/a/2QAtDQC]. 

Then why are you worried by the CPU usage?  This is similar to
performing redisplay of a portion of a window because the user presses
keys at 10 Hz rate.  If I press and hold the <RIGHT> arrow, I get
similar CPU usage (my keyboard auto-repeat rate is about 50/sec).
Each <RIGHT> keypress causes Emacs to draw 2 characters: the one from
which the cursor moves and the one to which it moves.




This bug report was last modified 108 days ago.

Previous Next


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