]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: reduce allocations for greeting
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:46 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:27 +0000 (05:26 +0000)
commit6ea82fb5d6cd5ae6813f3700fe915ab9110086ea
tree485e5e470c048eeeff2c5701891abae6631d38be
parentca6b59974a0f2e24a1d569d118b55c4fc66ff7a3
nntp: reduce allocations for greeting

No need to allocate a new PerlIO::scalar filehandle for every
client, instead we can now pass the same CODE reference which
calls DS->write on a reused string reference.
lib/PublicInbox/NNTP.pm
lib/PublicInbox/NNTPD.pm