versatica / mediasoup

Cutting Edge WebRTC Video Conferencing
https://mediasoup.org
ISC License
6.27k stars 1.13k forks source link

liburing: avoid extra memcpy on RTP #1258

Closed jmillan closed 11 months ago

jmillan commented 11 months ago

Use an already allocated send buffer to directly encrypt the RTP rather than using the static EncryptBuffer that needs to be memcpy-ed before sending.

If there are no send buffers available, the EncryptBuffer will be used.

This saves 1% CPU. (Tested in 1 Producer -> 40 audio/video Consumers Router).

ibc commented 11 months ago

Conflicts