aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/sample.c
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-27 18:10:10 +0100
committereunhhu <[email protected]>2026-09-27 18:10:10 +0100
commitbd0476ff4a7bc638d4c97e03db2bf815f0389e9a (patch)
treea916abb23976b665b327cdf31363bbeeccbb2fe1 /benchmarks/sample.c
parent4a09c1bd5aee325e69f0f1c246e39b697b66d085 (diff)
downloadpure-bd0476ff4a7bc638d4c97e03db2bf815f0389e9a.tar.gz
pure-bd0476ff4a7bc638d4c97e03db2bf815f0389e9a.zip
Send a delivery's request in one piece
A batch went out as a write for its head, then a bracket or comma and the send for each of its sends: two writes a send. Now the head and the whole body are built in one buffer and written once. A receiver stopped while 20,000 sends piled up drained them at 91k sends a second before and at 470k after (three rounds each, Raspberry Pi 5). Writing the head apart from the body measured the same (468k), so the gain is the body's; one buffer is kept as the simpler of the two, and a lone send now leaves in one segment instead of two.
Diffstat (limited to 'benchmarks/sample.c')
0 files changed, 0 insertions, 0 deletions