]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
psgi_rproxy: standardize on 64K I/O size master
authorEric Wong <e@80x24.org>
Fri, 18 Jul 2025 01:39:42 +0000 (01:39 +0000)
committerEric Wong <e@80x24.org>
Sun, 20 Jul 2025 11:06:30 +0000 (11:06 +0000)
commitae1a633131f26bf31e4d8cd0646c6f40f0f0aa2b
tree8e14643666ad7970bb493259f2e14553cdf14068
parentc849f08a150fd278997607c8e36ea4f6b2ac7718
psgi_rproxy: standardize on 64K I/O size

Much of our bulk I/O in DS and IO.pm already uses 64K buffers
(matching the Linux default pipe size) instead of 16K buffers.
While larger I/O sizes can result in more work for the malloc
implementation, they can also reduce syscall and Perl function
call overhead to reduce CPU usage and improve throughput on long
fat networks (LFNs).  Furthermore, standardizing on larger sizes
ought to reduce fragmentation since malloc can avoid splitting
existing buffers used for bulk I/O we do in other places.
lib/PublicInbox/H1ReqRes.pm