nntp: resolve inboxes immediately on group listings
authorEric Wong <e@80x24.org>
Sat, 23 Jul 2022 04:41:54 +0000 (04:41 +0000)
committerEric Wong <e@80x24.org>
Sat, 23 Jul 2022 14:22:34 +0000 (14:22 +0000)
commit9b0c238f887475d920a8589b492ec15c63770152
tree73095b62e7c387d8dd266e8b39432f7d7796ff14
parentd07ba9c30800225052d17ccca458afbfa05a8ff0
nntp: resolve inboxes immediately on group listings

This prevents potential races between SIGHUP config reloads
while gigantic group listings are streaming, allowing us to
avoid many invalidation checks.

This also reduces send(2) syscalls and avoid Perl internal pad
allocations in a few places where it's not beneficial.  There
might be a slight (0.5%) speedup, but I'm not sure if that's
down to system noise, power/thermal management, or other users
on my VM.
lib/PublicInbox/NNTP.pm
lib/PublicInbox/NNTPD.pm