mirror of
https://github.com/livekit/livekit.git
synced 2026-12-05 21:08:09 +00:00
* rtc: avoid O(N*M) subscriber scan in RevokeDisallowedSubscribers Replace repeated linear slices.Contains scans in MediaTrackReceiver and DataTrack RevokeDisallowedSubscribers with an O(N + M) map lookup above allowedSubscribersMapThreshold (8), short-circuit when there are no subscribers, and avoid holding DataTrack.lock while building the allowlist set. * rtc: cover boundary, empty-allowlist, and concurrent cases for RevokeDisallowedSubscribers * rtc: fold threshold check into buildAllowedSubscriberSet