| commit | b2f8c1675d74b860c63f97a38e63f3578505391d | [log] [tgz] |
|---|---|---|
| author | Victor Boivie <boivie@webrtc.org> | Wed Apr 28 10:02:37 2021 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 28 13:28:35 2021 |
| tree | 3624c6b95286d03aa960ab1fc3728d0022cefd92 | |
| parent | aeff995ca8e18a0bbdc2376668415195f808fc91 [diff] |
Use unordered_map in ReceiveStatisticsImpl In highly loaded media servers, ReceiveStatisticsImpl's use of std::map attributes to ~0.32% CPU. It needs to be able to iterate through the statisticians in order when reporting, but that is considered to be rare compared to how often they are looked up. So this commit adds a separate sorted set for just keeping track of the SSRCs, and letting the map of SSRC to Statisticians, be unordered. Bug: webrtc:12689 Change-Id: I69fe41d96bca31b2e8d669b58b5c7afabceaa6a6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216385 Commit-Queue: Victor Boivie <boivie@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33864}
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.