[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19776: 25.0.50; HTML rendering is very slow
From: |
Lars Ingebrigtsen |
Subject: |
bug#19776: 25.0.50; HTML rendering is very slow |
Date: |
Sun, 24 Oct 2021 21:42:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> 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
- bug#19776: 25.0.50; HTML rendering is very slow, (continued)
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Eli Zaretskii, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Eli Zaretskii, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Stefan Monnier, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Eli Zaretskii, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow,
Lars Ingebrigtsen <=
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Stefan Kangas, 2021/10/24
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/25
- bug#19776: 25.0.50; HTML rendering is very slow, Eli Zaretskii, 2021/10/25
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/25
- bug#19776: 25.0.50; HTML rendering is very slow, Stefan Kangas, 2021/10/29
- bug#19776: 25.0.50; HTML rendering is very slow, Lars Ingebrigtsen, 2021/10/29