diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:17:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:47 +0000 |
commit | f32456e0d0f4a7756fcc17c83ccf5b682cb512d9 (patch) | |
tree | fee389d9d8a3830717834bba46860b22ed449756 /lib/PublicInbox/SearchView.pm | |
parent | 3b3ee0a9d98e338c94d8ec90191bbe76faba0d87 (diff) | |
download | public-inbox-f32456e0d0f4a7756fcc17c83ccf5b682cb512d9.tar.gz |
This allows us to focus string concatenations in one place to allow Perl internal scratchpad optimizations to reuse memory. Calling Compress::Raw::Zlib::deflate repeatedly proves too expensive in terms of CPU cycles.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index e0404e5f..b18947ee 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -331,7 +331,7 @@ sub mset_thread { # callback for PublicInbox::WwwStream::getline sub mset_thread_i { my ($ctx, $eml) = @_; - $ctx->zmore($ctx->html_top) if exists $ctx->{-html_tip}; + $ctx->zadd($ctx->html_top) if exists $ctx->{-html_tip}; $eml and return PublicInbox::View::eml_entry($ctx, $eml); my $smsg = shift @{$ctx->{msgs}} or $ctx->zmore(${delete($ctx->{skel})}); |