Subject: Re: bug#19776: 25.0.50; HTML rendering is very slow

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 24 Oct 2021 22:14:20 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> Or...  call do_pending_atimers in our loop somewhere strategic.  It's
> just a check for whether the atimers variable is NULL or not, so it
> should be reasonably fast.  Or just test the variable directly, for that
> matter.

Or...  is something else going on here?

I put in an explicit `while' here, because

DEFUN ("while", Fwhile, Swhile, 1, UNEVALLED, 0,
[...]
  while (!NILP (eval_sub (test)))
    {
      maybe_quit ();
      prog_ignore (body);
    }

So we're calling maybe_quit here:

(with-delayed-message 0.5 "Yes"
  (dotimes (i 1000000)
    (let ((j 0))
      (while (< j 1000)
	(setq j (1+ j))))))

Still, it's not triggered.  Hm.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no