Skip to content

Speed up connection setup, events, data channels and video, fix data channel stalls and connections kept alive after close - #261

Merged
MarshalX merged 8 commits into
mainfrom
optimize-setup-events-data-channels-video
Oct 17, 2026
Merged

MarshalX merged 8 commits into
mainfrom
optimize-setup-events-data-channels-video

Conversation

@MarshalX

@MarshalX MarshalX commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner
  • Speed up connection setup by keeping libsrtp initialized
  • Speed up connection setup by keeping the network list updated
  • Add ICE candidates in one signaling task
  • Gather a candidate pool without libwebrtc's step delay
  • Cache session descriptions between the events that change them
  • Speed up event delivery
  • Skip wake-ups while the event loop drains
  • Send data channel messages in one network-thread task
  • Skip the local address lookup on every UDP packet
  • Fix data channel stalls under load with larger UDP receive buffers
  • Convert received data channel messages once
  • Copy video frame data once into pooled buffers
  • Convert VideoToolbox output to I420 in one pass
  • Reject addIceCandidate without a remote description in the same task
  • Speed up data channels with a connected socket for the busy peer
  • Add the PythonWebRTC-ConnectedSockets field trial to turn connected sockets off
  • Speed up the first connection by running libsrtp's self-tests on their own thread
  • Start the network manager without waiting on the network thread
  • Create port allocators without a network-thread round trip
  • Deliver received data channel messages with less Python per message

@read-the-docs-community

read-the-docs-community Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 wrtc | 🛠️ Build #35212029 | 📁 Comparing 49b650c against latest (606f9b1)

  🔍 Preview build  

5 files changed · + 1 added · ± 4 modified

+ Added

± Modified

@MarshalX MarshalX changed the title Speed up connection setup, events, data channels and video, fix data channel stalls under load Speed up connection setup, events, data channels and video, fix data channel stalls and connections kept alive after close Oct 17, 2026
@MarshalX
MarshalX merged commit df13bc7 into main Oct 17, 2026
25 checks passed
@MarshalX
MarshalX deleted the optimize-setup-events-data-channels-video branch October 17, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant