mirror of
https://github.com/livekit/livekit.git
synced 2026-09-13 19:55:33 +00:00
- reuse the 32KiB response-copy buffer and the response-head reader from sync.Pools; ~27% fewer bytes allocated per small request. - reuse a per-conn marshal buffer in WriteFrame instead of allocating one per frame; ~19% fewer bytes on a 1MiB upload. Safe because stream.Write copies the payload and gorilla WriteMessage does not retain it.