mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
![]() Original implementation uses TaskQueue to async execute both `LogToMemory` and `WriteToOutput`. `LogToMemory` is invoked in high frequency, but the execution takes a very short time. It would be a bit more expensive to post on TaskQueue than execution on current thread with locking. It is because that the TaskQueue switches the thread context for execution. This CL separates `LogToMemory` from TaskQueue to current thread, in order to avoid frequent context switching; And periodically schedule `WriteToOutput` to TaskQueue, not block current thread. Link: https://webrtc-review.googlesource.com/c/src/+/283641 Bug: chromium:1288710 Change-Id: Ic78216aff16d1883b109e360a0892da3ca8f5ecb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/295640 Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Reviewed-by: Markus Handell <handellm@webrtc.org> Reviewed-by: Markus Handell <handellm@google.com> Cr-Commit-Position: refs/heads/main@{#39629} |
||
---|---|---|
.. | ||
g3doc | ||
rtc_event_log | ||
BUILD.gn | ||
OWNERS |