about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-12-24 11:52:44 +0000
committerEric Wong <e@80x24.org>2016-12-24 19:41:03 +0000
commitd9e9c8ed84a15c7fdf8fa57e82fcec9de7ecba87 (patch)
tree31ae322d2a4280aa55059716fe01ad5628609e95 /lib/PublicInbox/View.pm
parentf083ef6b36fcfe5bea35427636fc8aff4e729ef6 (diff)
downloadpublic-inbox-d9e9c8ed84a15c7fdf8fa57e82fcec9de7ecba87.tar.gz
This results in over 1% speedup doing $MESSAGE_ID/T/ HTML
generation for a 368-message thread.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 39ca959c..e4e9d7d2 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -482,9 +482,8 @@ sub add_text_body {
                         flush_quote(\$s, $l, \@quot) if @quot;
 
                         # regular line, OK
-                        $cur = $l->linkify_1($cur);
-                        $cur = ascii_html($cur);
-                        $s .= $l->linkify_2($cur);
+                        $l->linkify_1($cur);
+                        $s .= $l->linkify_2(ascii_html($cur));
                 } else {
                         push @quot, $cur;
                 }