]> Sergey Matveev's repositories - public-inbox.git/commit
nntpdeflate: reduce overhead of idle clients
authorEric Wong <e@80x24.org>
Sun, 14 Jul 2019 02:56:36 +0000 (02:56 +0000)
committerEric Wong <e@80x24.org>
Sun, 14 Jul 2019 02:57:15 +0000 (02:57 +0000)
commitd327141cee62b2efec2c859a237023d7ff9e71a5
treed68457bf1559279d5fa54727675a82a4d8c776f6
parent4b82e287358c9cd858456798c7f09881d2d274aa
nntpdeflate: reduce overhead of idle clients

We don't need to keep an empty buffer around in the common case
when a client is sending us completely inflatable requests and
we're able to read them in one go.

This only seems to save about 2M with 10K NNTPS clients using
COMPRESS, so it's not a huge win, but better than nothing.
lib/PublicInbox/NNTPdeflate.pm