From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Richard Stallman <rms@gnu.org>
Cc: 19776@debbugs.gnu.org
Subject: bug#19776: 25.0.50; HTML rendering is very slow
Date: Thu, 05 Feb 2015 12:42:21 +0100 [thread overview]
Message-ID: <87wq3wk2jm.fsf@yahoo.fr> (raw)
In-Reply-To: <E1YJ8yb-00049a-UL@fencepost.gnu.org> (Richard Stallman's message of "Wed, 04 Feb 2015 18:03:17 -0500")
Richard Stallman <rms@gnu.org> writes:
> The automatic HTML rendering of the following message takes several
> seconds on this X60 which for most things is blindingly fast.
FWIW, here's the elp-results on my machine (after instrumenting the
package shr, and calling shr-render-buffer) :
shr-descend 6227 408.78522387 0.0656472175
shr-tag-table 1062 189.46034310 0.1783995697
shr-tag-table-1 1062 189.33667913 0.1782831253
shr-make-table 3186 187.52006959 0.0588575234
shr-make-table-1 1070 164.06574762 0.1533324744
shr-render-td 3428 163.98280975 0.0478362922
shr-render-buffer 1 28.734523319 28.734523319
shr-insert-document 1 28.712268988 28.712268988
shr-tag-body 1 28.690722764 28.690722764
shr-insert-table 1062 0.8013559019 0.0007545724
shr-insert 4126 0.283103186 6.861...e-05
shr-tag-a 822 0.2324357269 0.0002827685
shr-column-specs 1062 0.1266108010 0.0001192192
shr-tag-div 198 0.0957929849 0.0004838029
shr-max-columns 2124 0.0947569080 4.461...e-05
shr-colorize-region 634 0.075634319 0.0001192970
shr-parse-style 548 0.0700457249 0.0001278206
shr-color-check 141 0.0599092470 0.0004248882
shr-tag-img 333 0.058440363 0.0001754965
shr-color-visible 141 0.0464957430 0.0003297570
shr-urlify 212 0.0396780100 0.0001871604
shr-count 5966 0.0346115289 5.801...e-06
shr-table-widths 1062 0.0337347569 3.176...e-05
shr-add-font 3462 0.0260796149 7.533...e-06
shr-find-fill-point 494 0.0245121429 4.961...e-05
shr-indent 10019 0.0231243120 2.308...e-06
shr-remove-trailing-whitespace 1 0.02058152 0.02058152
shr-pro-rate-columns 1062 0.0123682060 1.164...e-05
shr-insert-table-ruler 4045 0.0103226100 2.551...e-06
shr-ensure-paragraph 1064 0.0096426120 9.062...e-06
shr-color->hexadecimal 282 0.0084433179 2.994...e-05
shr-fold-text 23 0.0077441709 0.0003367030
shr-ensure-newline 396 0.0067178849 1.696...e-05
shr-expand-url 545 0.0023009930 4.222...e-06
shr-tag-br 102 0.002192799 2.149...e-05
shr-tag-comment 289 0.0007590249 2.626...e-06
shr-tag-title 1 0.00071629 0.00071629
shr-heading 1 0.000702604 0.000702604
shr-encode-url 46 0.0006519919 1.417...e-05
shr-fontize-dom 1 0.000606771 0.000606771
shr-tag-span 9 0.000584241 6.491...e-05
shr-previous-newline-padding-width 126 0.0004090820 3.246...e-06
shr-image-displayer 23 8.367...e-05 3.638...e-06
shr-tag-style 1 2.438e-06 2.438e-06
> Since there is no indication on the screen of what is happening,
> I think that I failed to type a command, and type it again.
>
> It needs to be sped up, but in the short term it needs to display
> "Rendering html..." in the echo area.
A patch is attached but I don't know if this is the right place for it
(shr-insert-document).
modified lisp/net/shr.el
@@ -208,7 +208,8 @@ (defun shr-insert-document (dom)
(shr-depth 0)
(shr-warning nil)
(shr-internal-width (or shr-width (1- (window-width)))))
- (shr-descend dom)
+ (with-temp-message "Rendering HTML..."
+ (shr-descend dom))
(shr-remove-trailing-whitespace start (point))
(when shr-warning
(message "%s" shr-warning))))
--
Nicolas
next prev parent reply other threads:[~2015-02-05 11:42 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 23:03 bug#19776: 25.0.50; HTML rendering is very slow Richard Stallman
2015-02-05 11:42 ` Nicolas Richard [this message]
2015-02-05 16:14 ` Eli Zaretskii
2015-12-25 22:34 ` Lars Ingebrigtsen
2015-12-26 6:14 ` Richard Stallman
2018-04-15 21:49 ` Lars Ingebrigtsen
2018-04-15 22:00 ` Lars Ingebrigtsen
2021-10-22 23:59 ` Stefan Kangas
2021-10-23 7:27 ` Eli Zaretskii
2021-10-24 12:43 ` Lars Ingebrigtsen
2021-10-24 14:04 ` Eli Zaretskii
2021-10-24 14:25 ` Lars Ingebrigtsen
2021-10-24 16:22 ` Lars Ingebrigtsen
2021-10-24 17:06 ` Eli Zaretskii
2021-10-24 17:56 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24 18:45 ` Lars Ingebrigtsen
2021-10-24 19:10 ` Lars Ingebrigtsen
2021-10-24 19:18 ` Lars Ingebrigtsen
2021-10-24 19:24 ` Eli Zaretskii
2021-10-24 19:42 ` Lars Ingebrigtsen
2021-10-24 20:09 ` Lars Ingebrigtsen
2021-10-24 20:14 ` Lars Ingebrigtsen
2021-10-24 20:18 ` Lars Ingebrigtsen
2021-10-24 20:40 ` Lars Ingebrigtsen
2021-10-24 21:52 ` Stefan Kangas
2021-10-25 13:08 ` Lars Ingebrigtsen
2021-10-25 13:20 ` Eli Zaretskii
2021-10-25 13:33 ` Lars Ingebrigtsen
2021-10-29 17:28 ` Stefan Kangas
2021-10-29 17:38 ` Lars Ingebrigtsen
2021-10-29 17:59 ` bug#51490: Show an indicator when Emacs is busy somewhere in the Emacs window Stefan Kangas
2021-10-30 12:40 ` Lars Ingebrigtsen
2022-09-19 20:16 ` Lars Ingebrigtsen
2022-09-20 11:36 ` Eli Zaretskii
2022-09-21 11:06 ` Lars Ingebrigtsen
2022-09-21 11:49 ` Eli Zaretskii
2022-09-21 12:01 ` Lars Ingebrigtsen
2022-09-21 12:34 ` Stefan Kangas
2022-09-21 13:08 ` Eli Zaretskii
2022-09-21 13:05 ` Eli Zaretskii
2022-09-21 13:32 ` Lars Ingebrigtsen
2022-09-21 14:01 ` Eli Zaretskii
2022-09-21 16:02 ` Gregory Heytings
2022-09-21 16:21 ` Eli Zaretskii
2022-09-21 17:11 ` Gregory Heytings
2022-09-22 6:28 ` Eli Zaretskii
2022-09-22 10:54 ` Lars Ingebrigtsen
2022-09-22 12:33 ` Eli Zaretskii
2022-09-22 13:08 ` Gregory Heytings
2022-09-22 14:03 ` Eli Zaretskii
2022-09-22 15:57 ` Gregory Heytings
2022-09-22 16:21 ` Eli Zaretskii
2022-09-23 15:06 ` Lars Ingebrigtsen
2022-09-23 15:45 ` Eli Zaretskii
2022-09-22 13:02 ` Gregory Heytings
2022-09-22 13:59 ` Eli Zaretskii
2021-10-24 22:14 ` bug#19776: 25.0.50; HTML rendering is very slow Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24 22:28 ` Lars Ingebrigtsen
2021-10-25 7:33 ` Andreas Schwab
2021-10-25 13:11 ` Lars Ingebrigtsen
2021-10-25 13:33 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-25 13:46 ` Andreas Schwab
2021-10-25 13:52 ` Lars Ingebrigtsen
2021-10-25 14:05 ` Lars Ingebrigtsen
2021-10-25 14:16 ` Eli Zaretskii
2021-10-25 14:25 ` Lars Ingebrigtsen
2021-10-25 14:31 ` Andreas Schwab
2021-10-25 14:36 ` Lars Ingebrigtsen
2021-10-25 14:48 ` Lars Ingebrigtsen
2021-10-25 14:32 ` Lars Ingebrigtsen
2021-10-25 14:00 ` Eli Zaretskii
2021-10-25 14:35 ` Andreas Schwab
2021-10-25 15:05 ` bug#19776: timerfd doesn't work when busy-looping Lars Ingebrigtsen
2021-10-25 15:59 ` Eli Zaretskii
2021-10-25 16:16 ` Lars Ingebrigtsen
2021-10-25 16:41 ` bug#19776: The hourglass Lars Ingebrigtsen
2021-10-25 16:51 ` Eli Zaretskii
2021-10-25 16:57 ` Lars Ingebrigtsen
2021-10-25 16:09 ` bug#19776: 25.0.50; HTML rendering is very slow Eli Zaretskii
2021-10-25 16:19 ` Lars Ingebrigtsen
2021-10-25 16:53 ` Eli Zaretskii
2021-10-25 17:01 ` Lars Ingebrigtsen
2021-10-25 17:07 ` Eli Zaretskii
2021-10-25 17:11 ` Andreas Schwab
2021-10-25 17:12 ` Eli Zaretskii
2021-10-25 17:52 ` Andreas Schwab
2021-10-25 18:25 ` Eli Zaretskii
2021-10-25 2:17 ` Richard Stallman
2021-10-25 13:10 ` Lars Ingebrigtsen
2021-10-27 12:59 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wq3wk2jm.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=19776@debbugs.gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).