From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#19776: 25.0.50; HTML rendering is very slow Date: Sun, 24 Oct 2021 21:42:24 +0200 Message-ID: <87fssq2orj.fsf@gnus.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> <83ee8a2pm7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28214"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: stefan@marxist.se, 19776@debbugs.gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 24 21:43:13 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 1mejOi-0007BM-MU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 21:43:12 +0200 Original-Received: from localhost ([::1]:49338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mejOg-0003rt-VB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 15:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mejOY-0003p8-81 for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 15:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mejOX-0001hy-UK for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 15:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mejOX-0000Ri-Sg for bug-gnu-emacs@gnu.org; Sun, 24 Oct 2021 15:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 19:43:01 +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.16351045581682 (code B ref 19776); Sun, 24 Oct 2021 19:43:01 +0000 Original-Received: (at 19776) by debbugs.gnu.org; 24 Oct 2021 19:42:38 +0000 Original-Received: from localhost ([127.0.0.1]:41004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mejO9-0000R4-W1 for submit@debbugs.gnu.org; Sun, 24 Oct 2021 15:42:38 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mejO8-0000Qq-7Y for 19776@debbugs.gnu.org; Sun, 24 Oct 2021 15:42:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VyBfSrTwT0Vx4sFrs81MR/4OmWYk8I00Xp8/nDHVdp4=; b=Zy7RklFoyAs0a61OOhhE6KlDpO rvvfymDTZzJHgEoy/+KVULgmYovSsL3t3EYYLJixZRVME2tLNWxEVHxVmBf/VjfyvVlIypfX7Whib 56wO6V2e1MKujctewAeRwur5CsF2uEYlB4LBBSR7ygUdxnQCjgZis0kL6spV0XWkkUmQ=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mejNx-000206-Lz; Sun, 24 Oct 2021 21:42:28 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWbmpu2qs14cY5T Yo9EM1b///9aDEYQAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UKGBMJCJQ5aRIAAAGTSURBVDjLZZOL rcMgDEWJ0wFavQWQYQAUM0AF3n+mZ5tvGlRViU/u9Qdwzh2fj3MOgHS5x8pEgejyMwAoS15PonTS tb6EAJgEqNNbJA4mONMASQEucClATZ0pgZ85IHl54cCUWcqaCnmQ5MCcmavKuht4cCpnXRKuTKF4 U4hRByrIVRyvbuWHQpCBol4YrKooUfllYWwKJ4MQgHjJkyH5SwayKE6t5o+sMCa25AFlJKe32eaW iNcQIVhBHdQ1So2T5TWygMWlwQfINGLqlhaIw0VFm8CdddZ0E7QkHdQbUMlQMI4dsZ0V+3TENrAG MHOWJnPF4/PSbeR+VjCqWhaR7CMFkbR9fw1r3VyuqJ81Enlb1mE/kPAA3esuubZhTQkh2SDLAFNi R4HZP8DP2OEe5wJjJitm8xoC/HH6jvgQlPYFTsEsNgcttmypC8d+dOMGnIJep+cdwD37dwL3svy1 cg21wA48vtoVCHW76eLlcDZfXPQb8qP7bPeP8iTvPrCCx6E93wy93POrH7+VxR1a90r9DwbDn2gc 12KoAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI0VDE5OjA5OjA4KzAwOjAwq75rBwAAACV0 RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yNFQxOTowOTowOCswMDowMNrj07sAAAAASUVORK5CYII= In-Reply-To: <83ee8a2pm7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 24 Oct 2021 22:24:00 +0300") 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:218188 Archived-At: 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: (with-delayed-message 0.5 "Yes" (dotimes (i 1000000) (with-temp-buffer (shr-insert-document '(html nil (body nil (table nil (tr nil (td nil "Here's a line ") (td nil "Here's a line "))))))))) Could `with-delayed-message' set a flag that would call maybe_quit more often, somehow? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no