about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:38 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commit52a02a813a46940530183ede4d4cc7028290cd8f (patch)
tree4ff2be17559f6cbbe9f656aaa0a83b812b2d6bea /lib/PublicInbox/View.pm
parent9eac193c72e1380972f3589cb6b4f36b79183233 (diff)
downloadpublic-inbox-52a02a813a46940530183ede4d4cc7028290cd8f.tar.gz
Like with WwwAtomStream and MboxGz, we can bless the existing
$ctx object directly to avoid allocating a new hashref.  We'll
also switch from "->" to "::" to reduce stack utilization.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 0bc2b06e..4d6f44e0 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -66,7 +66,7 @@ sub msg_page {
         $ctx->{mhref} = $next ? '../'.mid_href($smsg->{mid}).'/' : '';
         multipart_text_as_html($mime, $ctx);
         $ctx->{-html_tip} = (${delete $ctx->{obuf}} .= '</pre><hr>');
-        PublicInbox::WwwStream->response($ctx, 200, \&msg_page_i);
+        PublicInbox::WwwStream::response($ctx, 200, \&msg_page_i);
 }
 
 sub msg_page_more { # cold
@@ -413,7 +413,7 @@ sub stream_thread ($$) {
         $ctx->{-title_html} = ascii_html($smsg->{subject});
         $ctx->{-html_tip} = thread_eml_entry($ctx, $level, $smsg, $eml);
         $ctx->{-queue} = \@q;
-        PublicInbox::WwwStream->response($ctx, 200, \&stream_thread_i);
+        PublicInbox::WwwStream::response($ctx, 200, \&stream_thread_i);
 }
 
 # /$INBOX/$MESSAGE_ID/t/
@@ -459,7 +459,7 @@ sub thread_html {
         $ctx->{-title_html} = ascii_html($smsg->{subject});
         $ctx->{-html_tip} = '<pre>'.eml_entry($ctx, $smsg, $eml, scalar @$msgs);
         $ctx->{msgs} = $msgs;
-        PublicInbox::WwwStream->response($ctx, 200, \&thread_html_i);
+        PublicInbox::WwwStream::response($ctx, 200, \&thread_html_i);
 }
 
 sub thread_html_i { # PublicInbox::WwwStream::getline callback
@@ -1213,7 +1213,7 @@ sub index_topics {
         if (@$msgs) {
                 walk_thread(thread_results($ctx, $msgs), $ctx, \&acc_topic);
         }
-        PublicInbox::WwwStream->response($ctx, dump_topics($ctx), \&index_nav);
+        PublicInbox::WwwStream::response($ctx, dump_topics($ctx), \&index_nav);
 }
 
 sub thread_adj_level {