]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NNTPD.pm
daemon: do more immortal allocations up front
[public-inbox.git] / lib / PublicInbox / NNTPD.pm
index 7a917169c70fd8841a3a3fd830b8c6f0e98beb5e..451f4d4183bf52875e5f3e800f269c331ccffa14 100644 (file)
@@ -45,6 +45,10 @@ sub refresh_groups () {
                        # Only valid if msgmap and search works
                        $new->{$ngname} = $ng;
                        push @list, $ng;
+
+                       # preload to avoid fragmentation:
+                       $ng->description;
+                       $ng->base_url;
                }
        });
        @list = sort { $a->{newsgroup} cmp $b->{newsgroup} } @list;