Files
Matthew Hodgson b7f9848429 Write JSON responses to the transport in one go
Rather than drip-feeding an already-encoded response body through a
producer in 4KB chunks, hand the whole body to the transport at once and
only use a producer to delay finishing the request until the transport
has flushed it.

The transport only resumes a paused producer once its 64KB send buffer
is completely empty, so the old approach could send at most ~64KB per
reactor tick, which makes large responses crawl on a busy worker.
2026-10-04 01:20:07 +01:00
..
2026-09-18 12:00:45 +01:00