diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:17:26 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:55 +0000 |
commit | 27f50c13952376b7482280f16a6cd8e5dc421915 (patch) | |
tree | bf8a65c0f8e97f15bf9d2507074fd3229d345425 /lib/PublicInbox/Feed.pm | |
parent | a137e8448578bcf80d026e6ee0c414fe23248366 (diff) | |
download | public-inbox-27f50c13952376b7482280f16a6cd8e5dc421915.tar.gz |
eml_entry will enable zfh (PerlIO::scalar) buffering, anyways, so there's no point in calling ->zmore to compress small strings. The use of zfh for the skeleton is debatable, but probably of no consequence given html_footer will hit it, anyways.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 56ca9886..affe0fb6 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -49,15 +49,15 @@ sub generate_html_index { sub new_html_i { my ($ctx, $eml) = @_; - $ctx->zmore($ctx->html_top) if exists $ctx->{-html_tip}; + print { $ctx->zfh } $ctx->html_top if exists $ctx->{-html_tip}; if ($eml) { $ctx->{smsg}->populate($eml) if !$ctx->{ibx}->{over}; return PublicInbox::View::eml_entry($ctx, $eml); } my $smsg = shift @{$ctx->{msgs}} or - $ctx->zmore(PublicInbox::View::pagination_footer( - $ctx, './new.html')); + print { $ctx->zfh } PublicInbox::View::pagination_footer( + $ctx, './new.html'); $smsg; } |