GNU bug report logs - #19776
25.0.50; HTML rendering is very slow

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Wed, 4 Feb 2015 23:04:02 UTC

Severity: minor

Merged with 22846

Found in versions 25.0.50, 25.0.91

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 19776 <at> debbugs.gnu.org, stefan <at> marxist.se, monnier <at> iro.umontreal.ca, rms <at> gnu.org
Subject: bug#19776: 25.0.50; HTML rendering is very slow
Date: Sun, 24 Oct 2021 22:24:00 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  stefan <at> marxist.se,  rms <at> gnu.org,
>   19776 <at> debbugs.gnu.org
> Date: Sun, 24 Oct 2021 21:10:57 +0200
> 
> I've now implemented this...  but testing this with a busy loop shows
> that the atimer doesn't fire (or at least that the callback doesn't get
> called) in all situations.
> 
> If I move the mouse pointer, for instance, then it's called.  If I don't
> do anything, and eval this:
> 
> (with-delayed-message 0.5 "Yes"
>   (dotimes (i 1000000000)
>     (+ i 2)))
> 
> the atimer callback isn't called.  Anybody know what's up with that?

When the timer expires, it delivers a signal, but the signal handler
only sets a flag.  The flag is checked when we call maybe_quit, which
calls do_pending_atimers.  So a Lisp program that hogs the CPU, and
never calls any function that calls maybe_quit, will indeed block
atimers.  However, this is rare for real-life Lisp programs, because
several core primitives call maybe_quit from time to time.




This bug report was last modified 3 years and 206 days ago.

Previous Next


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