Bug 270280
| Summary: | LibWebRTCCodecs's createRemoteEncoder is going through the main thread. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | WebRTC | Assignee: | 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]
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/123806984>
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/25276
EWS
Committed 275545@main (c73ac9c2ac41): <https://commits.webkit.org/275545@main>
Reviewed commits have been landed. Closing PR #25276 and removing active labels.