Files
livekit/pkg
Théo Monnom bcc38f9f70 agent endpoints: frame large uploads at MaxFrameSize and pool the buffers
Stream now implements io.ReaderFrom, so http.Request.Write's bufio.Writer
delegates the body to it and a large upload flows in MaxFrameSize frames instead
of ~4KiB ones - 16x fewer frames, marshals, scheduler cycles and websocket
messages. Large frame buffers (>= 16KiB) are drawn from a per-conn sync.Pool and
recycled by the scheduler after each write, so a big upload stops allocating a
buffer per frame; small/webhook bodies stay below the threshold and use a
right-sized make, so the average request is unaffected.

Measured on a 1MiB upload: -82% allocations, -66% latency, -17% bytes; a small
GET/POST is unchanged.
2026-08-21 19:42:03 -07:00
..
2026-08-14 16:26:08 +08:00
2026-07-26 22:26:41 +05:30
2026-08-14 16:26:08 +08:00
2026-08-14 16:26:08 +08:00
2026-04-23 15:41:55 +05:30