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: Eval Exec <execvy <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
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 23:44:16 +0800
[Message part 1 (text/plain, inline)]
> Then why are you worried by the CPU usage?
Because I use laptop with battery everyday, I want to let Emacs more
powersave. Get a better battery life.



On Thu, Feb 27, 2025 at 11:37 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > 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.
>
[Message part 2 (text/html, inline)]

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.