about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-12-24 11:52:43 +0000
committerEric Wong <e@80x24.org>2016-12-24 19:41:01 +0000
commitf083ef6b36fcfe5bea35427636fc8aff4e729ef6 (patch)
treeaa4df44cd369d463a645f9336d4844e1205696ac /lib
parent2e05c4503e44d4d9bf126589b7c6ba71db7ce94e (diff)
downloadpublic-inbox-f083ef6b36fcfe5bea35427636fc8aff4e729ef6.tar.gz
This results in a half percent speedup or so doing
$MESSAGE_ID/T/ HTML generation for a 368 message thread.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 97a8bcbc..39ca959c 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -476,7 +476,7 @@ sub add_text_body {
         }
         my @quot;
         my $l = PublicInbox::Linkify->new;
-        while (defined(my $cur = shift @lines)) {
+        foreach my $cur (@lines) {
                 if ($cur !~ /^>/) {
                         # show the previously buffered quote inline
                         flush_quote(\$s, $l, \@quot) if @quot;