mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
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>