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. --- Documentation/mknews.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Documentation/mknews.perl') diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index 2d22d147..1bd704e6 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -112,7 +112,7 @@ sub html_start { my ($out, $ctx) = @_; require PublicInbox::WwwStream; $ctx->{www} = My::MockObject->new(style => ''); - my $www_stream = PublicInbox::WwwStream->new($ctx); + my $www_stream = PublicInbox::WwwStream::init($ctx); print $out $www_stream->_html_top, '
' or die;
 }
 
-- 
cgit v1.2.3-24-ge0c7