]> Sergey Matveev's repositories - public-inbox.git/commit
http: use bigger, but shorter-lived buffers for pipes
authorEric Wong <e@80x24.org>
Fri, 28 Jun 2019 19:26:56 +0000 (19:26 +0000)
committerEric Wong <e@80x24.org>
Sat, 29 Jun 2019 19:59:00 +0000 (19:59 +0000)
commit8922459f0fa7265cfe3dee21f56895aeeb560d47
tree6e4669f9a18efb95db84fe06e4dd3b164d75f085
parent21a539a2df0cbbc929aecec88f9fd6879e20f466
http: use bigger, but shorter-lived buffers for pipes

Linux pipes default to 65536 bytes in size, and we want to read
external processes as fast as possible now that we don't use
Danga::Socket or buffer to heap.

However, drop the buffer ASAP if we need to wait on anything;
since idle buffers can be idle for eons.  This lets other
execution contexts can reuse that memory right away.
lib/PublicInbox/HTTPD/Async.pm
lib/PublicInbox/Qspawn.pm