From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19776: 25.0.50; HTML rendering is very slow Date: Sun, 24 Oct 2021 22:24:00 +0300 Message-ID: <83ee8a2pm7.fsf@gnu.org> References: <87d1tuw42p.fsf@gnus.org> <87tvsc6syh.fsf@mouse.gnus.org> <87h8oc6sfs.fsf@mouse.gnus.org> <83pmrw5hfs.fsf@gnu.org> <875ytmbnk2.fsf@gnus.org> <83y26i34e1.fsf@gnu.org> <87wnm27b57.fsf@gnus.org> <87sfwq75q4.fsf@gnus.org> <87wnm22q7y.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, 19776@debbugs.gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 24 21:25:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mej7H-0006qA-BR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 21:25:11 +0200 Original-Received: from localhost ([::1]:41232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mej7F-0005cX-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 15:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mej78-0005c9-ND for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 15:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mej78-0003DM-El for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 15:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mej78-0008R4-B2 for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 15:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 19:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19776 X-GNU-PR-Package: emacs Original-Received: via spool by 19776-submit@debbugs.gnu.org id=B19776.163510346532378 (code B ref 19776); Sun, 24 Oct 2021 19:25:02 +0000 Original-Received: (at 19776) by debbugs.gnu.org; 24 Oct 2021 19:24:25 +0000 Original-Received: from localhost ([127.0.0.1]:40980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mej6X-0008Q9-1X for submit@debbugs.gnu.org; Sun, 24 Oct 2021 15:24:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mej6U-0008Pw-TJ for 19776@debbugs.gnu.org; Sun, 24 Oct 2021 15:24:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43562) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mej6O-0002jy-Tc; Sun, 24 Oct 2021 15:24:16 -0400 Original-Received: from [87.69.77.57] (port=2076 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mej6H-0001PL-Qo; Sun, 24 Oct 2021 15:24:10 -0400 In-Reply-To: <87wnm22q7y.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 24 Oct 2021 21:10:57 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218186 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , stefan@marxist.se, rms@gnu.org, > 19776@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.