]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: reduce syscalls for ARTICLE and BODY
authorEric Wong <e@80x24.org>
Thu, 27 Jun 2019 17:31:30 +0000 (17:31 +0000)
committerEric Wong <e@80x24.org>
Thu, 27 Jun 2019 22:36:24 +0000 (22:36 +0000)
commitea71a5606c633f82975e8208a6c552053f7f5af8
tree4f6fc0bb3417d6b97c948469e1e3ab6599ceb3ac
parent71ea9961786fa14ea0a67200847bac5a76abf751
nntp: reduce syscalls for ARTICLE and BODY

Chances are we already have extra buffer space following the
expensive LF => CRLF conversion that we can safely append an
extra CRLF in those places without incurring a copy of the
full string buffer.

While we're at it, document where our pain points are in terms
of memory usage, since tracking/controlling memory use isn't
exactly obvious in high-level languages.

Perhaps we should start storing messages in git as CRLF...
lib/PublicInbox/NNTP.pm