about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-07-23 04:41:51 +0000
committerEric Wong <e@80x24.org>2022-07-23 14:22:31 +0000
commit0c62cffc23894a2f5eb1d6c9ee29973f4863a365 (patch)
tree001ef9f5eff37c36495a0fbc15b8ff3d4cf306d4 /lib/PublicInbox/NNTP.pm
parenta5e39d0e4e2d9b7ad937e8dd9af726d96eec6126 (diff)
downloadpublic-inbox-0c62cffc23894a2f5eb1d6c9ee29973f4863a365.tar.gz
No need to iterate through the array twice; and this even seems
a hair faster than what I got with commit 726d6e71aee5d974
(nntp: small speed up for multi-line responses, 2020-12-04)
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 43219b36..ab6eb525 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -189,7 +189,7 @@ sub listgroup_range_i {
         my ($self, $beg, $end) = @_;
         my $r = $self->{ibx}->mm(1)->msg_range($beg, $end, 'num');
         scalar(@$r) or return;
-        $self->msg_more(join('', map { "$_->[0]\r\n" } @$r));
+        $self->msg_more(join("\r\n", @$r, ''));
         1;
 }