about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTPD.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-11-27 09:52:46 +0000
committerEric Wong <e@80x24.org>2020-11-28 04:53:15 +0000
commit7b20e5135238a2780ac3df3198a02e9fbda4ba18 (patch)
tree609fe44b68be49cb9e0cbd46dbe45bb5f32d6b48 /lib/PublicInbox/NNTPD.pm
parentac43c3b17f452b02edf1cce3632a433e998de5ca (diff)
downloadpublic-inbox-7b20e5135238a2780ac3df3198a02e9fbda4ba18.tar.gz
Based on experiences with the IMAP server, this ought to be
significantly faster (as to be demonstrated in the next
commit).
Diffstat (limited to 'lib/PublicInbox/NNTPD.pm')
-rw-r--r--lib/PublicInbox/NNTPD.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm
index 13b0f678..4de1944b 100644
--- a/lib/PublicInbox/NNTPD.pm
+++ b/lib/PublicInbox/NNTPD.pm
@@ -60,7 +60,9 @@ sub refresh_groups {
                         delete $groups->{$ngname};
                 }
         });
-        $self->{grouplist} = [ map { $groups->{$_} } sort(keys %$groups) ];
+        my @names = sort(keys %$groups);
+        $self->{grouplist} = [ map { $groups->{$_} } @names ];
+        $self->{groupnames} = \@names;
         $self->{pi_config} = $pi_config;
         # this will destroy old groups that got deleted
         $self->{groups} = $groups;