From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19776: 25.0.50; HTML rendering is very slow Date: Fri, 22 Oct 2021 16:59:55 -0700 Message-ID: References: <87d1tuw42p.fsf@gnus.org> <87tvsc6syh.fsf@mouse.gnus.org> <87h8oc6sfs.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39179"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Richard Stallman , 19776@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 02:01:33 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 1me4Tc-0009zS-KR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 02:01:32 +0200 Original-Received: from localhost ([::1]:60402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me4Tb-0003IW-Gg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 20:01:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me4T8-0003CP-68 for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 20:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1me4T7-00027p-TW for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 20:01:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1me4T7-0001MO-MB for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 20:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 00:01: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.16349472055067 (code B ref 19776); Sat, 23 Oct 2021 00:01:01 +0000 Original-Received: (at 19776) by debbugs.gnu.org; 23 Oct 2021 00:00:05 +0000 Original-Received: from localhost ([127.0.0.1]:33983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me4SD-0001Jf-3Z for submit@debbugs.gnu.org; Fri, 22 Oct 2021 20:00:05 -0400 Original-Received: from mail-pg1-f170.google.com ([209.85.215.170]:42826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me4SA-0001If-GQ for 19776@debbugs.gnu.org; Fri, 22 Oct 2021 20:00:04 -0400 Original-Received: by mail-pg1-f170.google.com with SMTP id t7so4675650pgl.9 for <19776@debbugs.gnu.org>; Fri, 22 Oct 2021 17:00:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=BGP64FPxCWcT4TXUbERNpnQu/7HQ2I88wt7mIysj0ko=; b=tr4nuA7mjhslNt+xxXxFiBLrFY08/f64+R9Z+93UaAWHg5YiIbwzqDdOmT/2dGg3Um +n2GtYR32TlB109jcqa4xuA/ifNyCP4up+NlfliX0YNK4Jj8BSCbDaFXERLJmUeVl/q3 uXLM4xSLJkdmLT9FjdZo9Ym+KiyuA06LylsfOieEOQ086ZvTGW7KIHagljsGN5znkL0f pvh5AWmWijnZGMY369s+Hy84r0d/Qv4bFKzFUMGlb3vchmgizdvFfE+ww7BsXDpsHjEy 7dSP8YzDuWD0w8BKMpqUnLy3N+4NSzj1snkNpOG9YuoQlvPD60XF1HOyVNLKwzTP9OXF 6q6g== X-Gm-Message-State: AOAM531xLvnati0+jUehZrev8HjxxSk0MgA93xwjdWckUh+adEfTa/28 N6qM2bPBGyFZu6D8IJw0Yc5OCBarLdxXLSMXghA= X-Google-Smtp-Source: ABdhPJzTSCGWPu4geo2mbyILJgBlc3Iv+ETPrcmV1wWP/nPgEGY5u6FHKF6Df56cTAirBHnMLscndfh4sLnTXXMZzz8= X-Received: by 2002:aa7:978b:0:b0:44c:abf1:a8b8 with SMTP id o11-20020aa7978b000000b0044cabf1a8b8mr3176605pfp.35.1634947196454; Fri, 22 Oct 2021 16:59:56 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Oct 2021 16:59:55 -0700 In-Reply-To: <87h8oc6sfs.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 Apr 2018 00:00:39 +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:217925 Archived-At: Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> Richard Stallman writes: >> >>> It takes around 5 seconds now -- still enough to lead a user >>> to think it is broken. If it is going to take this long, >>> it should show echo area messages about process. >> >> If we had a form like >> >> (with-delayed-message (1 "Rendering html...") >> ... all the code ...) >> >> 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? IOW, I ask if what you ask for is a little bit "too nice", and if we shouldn't just fix the problematic ELisp code itself to use a progress reporter or something to that effect.