]> Sergey Matveev's repositories - public-inbox.git/commit
ds: share lazy rbuf handling between HTTP and NNTP
authorEric Wong <e@80x24.org>
Wed, 26 Jun 2019 08:11:10 +0000 (08:11 +0000)
committerEric Wong <e@80x24.org>
Sat, 29 Jun 2019 19:59:00 +0000 (19:59 +0000)
commit858ab5cfe5fffa6c5a4221a523db3682be8fae06
treedf705ad8eaadb1c940a5128630f40be4848047d0
parentf2eaf5c929e6a3891b55195cbcaba99d16424933
ds: share lazy rbuf handling between HTTP and NNTP

Doing this for HTTP cuts the memory usage of 10K
idle-after-one-request HTTP clients from 92 MB to 47 MB.

The savings over the equivalent NNTP change in commit
6f173864f5acac89769a67739b8c377510711d49,
("nntp: lazily allocate and stash rbuf") seems down to the
size of HTTP requests and the fact HTTP is a client-sends-first
protocol where as NNTP is server-sends-first.
lib/PublicInbox/DS.pm
lib/PublicInbox/HTTP.pm
lib/PublicInbox/NNTP.pm