Files
livekit/pkg
Raja SubramanianandClaude Fable 5.2 733991f781 rtpstats: keep per-packet state together and use a plain mutex (#5237)
Update runs for every packet. With many streams, most of its cost is
memory access across three structs and about 10 cache lines.

- use sync.Mutex, all readers are short getters
- embed the base structs, the WrapAround trackers, the history bitmap
  and the RTP converter by value
- group the fields that every packet updates, move gapHistogram after them
- compute expectedTSJump only when it is used

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 16:50:21 +05:30
..
2025-11-28 21:51:53 +05:30