commit | 723873b841ea12a814b983b71933389245fd07e1 | [log] [tgz] |
---|---|---|
author | Victor Boivie <boivie@webrtc.org> | Tue Apr 27 08:13:46 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 27 12:55:35 2021 |
tree | 8fe5f65c0761560f951ffeacfb9726a6a5d9505f | |
parent | a63bee55f2cd0e2ae92f3963f73ba39c184f4c9e [diff] |
Use unordered map in RoundRobinPacketQueue In highly loaded Media Servers, RoundRobinPacketQueue's usage of std::map attributes to around 0.3% CPU. In profiling, it has been found that it's the `streams_` map that is the culprit and std::map::find being the function that is used most. By using an unordered map, lookups should be faster. This will be evaluated and if this commit doesn't show results, it will be reverted. Bug: webrtc:12689 Change-Id: Ia368f1184130298cfbb9064528828435aa7a5c66 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216320 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Victor Boivie <boivie@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33848}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.