Bug 270280

Summary: LibWebRTCCodecs's createRemoteEncoder is going through the main thread.
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: WebRTCAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Jean-Yves Avenard [:jya]
Reported 2024-02-28 21:00:54 PST
LibWebRTCCodecs's createRemoteEncoder runs on a dedicated WorkQueue and is a WorkQueueMessageReceiver allowing it to send and receive IPC messages off the main thread. However, its use of sendWithAsyncReply means that all replies first transit through the main thread, which is a performance bottleneck Following bug 270118, we can instead use sendWithAsyncReplyOnDispatcher which allows to avoid the unnecessary re-dispatch.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-02-28 21:01:40 PST
Jean-Yves Avenard [:jya]
Comment 2 2024-02-28 21:08:37 PST
EWS
Comment 3 2024-03-01 04:36:13 PST
Committed 275545@main (c73ac9c2ac41): <https://commits.webkit.org/275545@main> Reviewed commits have been landed. Closing PR #25276 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.