From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#19776: 25.0.50; HTML rendering is very slow Date: Sun, 24 Oct 2021 18:14:41 -0400 Message-ID: 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> <83ee8a2pm7.fsf@gnu.org> <87fssq2orj.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1534"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , stefan@marxist.se, rms@gnu.org, 19776@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 00:15:32 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 1melm7-00009i-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 00:15:31 +0200 Original-Received: from localhost ([::1]:38578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1melm6-0003Ri-1A for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 18:15:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mellf-0003RL-0B for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 18:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1melle-0004jD-Kz for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 18:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1melle-0006fD-Gq for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 18:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 22:15: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.163511369225588 (code B ref 19776); Sun, 24 Oct 2021 22:15:02 +0000 Original-Received: (at 19776) by debbugs.gnu.org; 24 Oct 2021 22:14:52 +0000 Original-Received: from localhost ([127.0.0.1]:41200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mellU-0006ee-Ed for submit@debbugs.gnu.org; Sun, 24 Oct 2021 18:14:52 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mellT-0006eR-99 for 19776@debbugs.gnu.org; Sun, 24 Oct 2021 18:14:51 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BA98A80784; Sun, 24 Oct 2021 18:14:45 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4A8F78058E; Sun, 24 Oct 2021 18:14:44 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1635113684; bh=H0V7s1dzTYi3sRxen2Q6DMjaGbHo38seqYJEi8Gx81c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=YBlrRUgCb4K7PkWdf08IwlrBySLyalZ4wDwYfVOoSKIEB1puTCaxhv1WZOps7bib1 elkHGkGlZJH41eHQcdXZkE57hxOUzZq3ZJwrke6rTmu2NHbUtYHp8cBSN2ShBqSn92 MeL+UyyWnMbc92gY066XUX0FFwkHgYr4kfkInfhn7YXMuXa2yWhbe3ul7J8bMlz+um dJeLNpBYNzMT57iRZNVrIDrdFJj3/hGPdDS4wRdfvz0xRrb4c6ZQKHRrqD75C6ORUQ r5Pahi8OOv5Igl+hEfGzkfch/+2Sbm21lqXvObmS3IA4PHADllM923GPxKZ7aFotMr V9xULO4XZzsug== Original-Received: from milanesa (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EDDFE120328; Sun, 24 Oct 2021 18:14:43 -0400 (EDT) In-Reply-To: <87fssq2orj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 24 Oct 2021 21:42:24 +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:218223 Archived-At: Lars Ingebrigtsen [2021-10-24 21:42:24] wrote: > Eli Zaretskii writes: >> 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. > > The use case here was for CPU-hogging Lisp code, though, like > `shr-insert-document'. And it doesn't seem to hit any maybe_quits in > this very synthetic test: Basically all loops should call `maybe_quit`, so the issue is probably not that `maybe_quit` is not called often enough, but that for some reason we don't set the vars that it checks or something like that. Stefan