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: Sat, 23 Oct 2021 10:27:51 +0300 Message-ID: <83pmrw5hfs.fsf@gnu.org> References: <87d1tuw42p.fsf@gnus.org> <87tvsc6syh.fsf@mouse.gnus.org> <87h8oc6sfs.fsf@mouse.gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, rms@gnu.org, 19776@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 09:29:16 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 1meBSt-0009gm-Qk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 09:29:15 +0200 Original-Received: from localhost ([::1]:35514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meBSq-0005KN-GQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 03:29:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meBSg-0005KF-C2 for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 03:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meBSf-0001Cx-Va for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 03:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meBSf-0004X7-Oi for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 03:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 07:29: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.163497410217379 (code B ref 19776); Sat, 23 Oct 2021 07:29:01 +0000 Original-Received: (at 19776) by debbugs.gnu.org; 23 Oct 2021 07:28:22 +0000 Original-Received: from localhost ([127.0.0.1]:34255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meBS1-0004WF-Si for submit@debbugs.gnu.org; Sat, 23 Oct 2021 03:28:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meBRw-0004Vz-HW for 19776@debbugs.gnu.org; Sat, 23 Oct 2021 03:28:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53556) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meBRr-0008Jd-0K; Sat, 23 Oct 2021 03:28:11 -0400 Original-Received: from [87.69.77.57] (port=1841 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 1meBRk-0004Tw-R7; Sat, 23 Oct 2021 03:28:05 -0400 In-Reply-To: (message from Stefan Kangas on Fri, 22 Oct 2021 16:59:55 -0700) 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:217948 Archived-At: > From: Stefan Kangas > Date: Fri, 22 Oct 2021 16:59:55 -0700 > Cc: Richard Stallman , 19776@debbugs.gnu.org > > >> then we'd be able to display a message if the code took longer than 1 > >> second. We don't have that, do we? > > > > Oh, I asked this before, and the answer is "nope, not at all". > > > > The problem is that it can't be done with normal timers, since "all the > > code" may be pure Elisp and never yield. For that reason, it can't be > > done with the new thread support, either. > > > > So it would require some C-level magic. > > I guess we can't do this for the C-level DEFUN's (without massive > changes), but we might be able to check some timer before executing a > Lisp function or something. However, wouldn't such a new check risk > slowing Emacs down as a whole? Did someone consider using atimers for this purpose? See atimer.c.