about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchView.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-04 22:03:46 +0000
committerEric Wong <e@80x24.org>2020-12-05 21:41:52 +0000
commit726d6e71aee5d974615fa8097a482382a5064e5d (patch)
tree5c88abd24ea4b67f0eb246bbb23b8d99ea029373 /lib/PublicInbox/SearchView.pm
parent0a80d0c2e723213e3981d2d6ef0de7cee60ee50c (diff)
downloadpublic-inbox-726d6e71aee5d974615fa8097a482382a5064e5d.tar.gz
Using a non-zero-length separator for `join' requires extra work
inside Perl.  We can shove the cost of appending "\r\n" into the
`map' loop, instead.  This speeds up the `join' operation.

The "deferred" log entry for a "LISTGROUP org.kernel.vger.linux-kernel"
command (with nearly 3.8 million messages) goes from ~3.96s to 3.86s
on my workstation.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
0 files changed, 0 insertions, 0 deletions