commit | 18649971ab02d2f3fc8f360aee2e3c573652b7bd | [log] [tgz] |
---|---|---|
author | Victor Boivie <boivie@webrtc.org> | Tue Jul 06 20:43:47 2021 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 07 08:34:45 2021 |
tree | c9f74662d98e9fd1646869433e83141ca7869856 | |
parent | ac5f2e7203a9aa91682e097318ccf16d0db33abd [diff] |
Use flat_map in ReceiveStatisticsImpl std::unordered_map represents ~0.57% CPU in a loaded media server, which is expected to be reduced by using flat_map and its increased cache locality compared to std::unordered_map, which use quite a few allocations and indirections. The number of SSRCs tracked by this class is expected to be low and infrequently updated, but as GetOrCreateStatistician is called for every incoming RTP packet, lookups are frequent. Bug: webrtc:12689 Change-Id: I9a2c3798dcc7822f518e8f2624e78fceacd12d27 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/225202 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Victor Boivie <boivie@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34430}
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.