Livery, a BEAM web framework, was ~2x behind on large HTTP/2 responses.
The first suspect was flow control, but increasing the window changed nothing. eprof showed the real issue: one ssl:send per frame, causing ~8 TLS writes per 100KB response.
Coalescing frames into one write: 28k → 66k req/s. 2.4x.
Measure first.