From 52a02a813a46940530183ede4d4cc7028290cd8f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Jul 2020 23:27:38 +0000 Subject: wwwstream: reduce object graph depth 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. --- lib/PublicInbox/SearchView.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchView.pm') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index d53a533e..71c3ae70 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -82,7 +82,7 @@ retry: $cb = mset_summary($ctx, $mset, $q); } } - PublicInbox::WwwStream->response($ctx, $code, $cb); + PublicInbox::WwwStream::response($ctx, $code, $cb); } # display non-nested search results similar to what users expect from -- cgit v1.2.3-24-ge0c7