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


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

From: Eval Exec <execvy <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76609 <at> debbugs.gnu.org
Subject: Re: 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:10:35 +0800
[Message part 1 (text/plain, inline)]
> 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].

Could you suggest some efficient ways to achieve this?

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

> > From: Eval Exec <execvy <at> gmail.com>
> > Date: Thu, 27 Feb 2025 22:34:44 +0800
> > Cc: 76609 <at> debbugs.gnu.org
> >
> > 45% CPU for a 0.1s repeating timer does seem surprisingly high. Is
> > there a way we can optimize this, given the frequent timer
> > invocations?
>
> We already optimize that as much as we can, AFAIK.
>
> What timers really need to run 10 times a second?
>
[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.