]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: move LIST iterators to long_response
authorEric Wong <e@80x24.org>
Fri, 27 Nov 2020 09:52:50 +0000 (09:52 +0000)
committerEric Wong <e@80x24.org>
Sat, 28 Nov 2020 04:53:19 +0000 (04:53 +0000)
commit68495128f46884f673c5e16770f2a8992e4ed7bb
tree96f0d2e2fb37d5a17c851afe1b5485c6a278f010
parentf5604d35bbe02ad72a4e8d5b2189ea31acf1d7b5
nntp: move LIST iterators to long_response

Iterating through many newsgroups can hog the event loop if many
random seeks are required.  Avoid monopolizing the event loop in
that case by using the long_response API.

For now, we can still rely on grep() since it seems to work
reasonably well with 50K test newsgroup names.
lib/PublicInbox/NNTP.pm