Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: webrtc/modules/congestion_controller/median_slope_estimator.h

Issue 2633293004: Improve computational performance of BWE by switching list to deque. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/congestion_controller/trendline_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/congestion_controller/median_slope_estimator.h
diff --git a/webrtc/modules/congestion_controller/median_slope_estimator.h b/webrtc/modules/congestion_controller/median_slope_estimator.h
index c36fdbeff0808b8815b0878caecc461a2364d8bc..3a13ec71ab4bbd2fd0767c5926bbf1afebb8e785 100644
--- a/webrtc/modules/congestion_controller/median_slope_estimator.h
+++ b/webrtc/modules/congestion_controller/median_slope_estimator.h
@@ -13,7 +13,7 @@
#include <stddef.h>
#include <stdint.h>
-#include <list>
+#include <deque>
#include <vector>
#include "webrtc/base/constructormagic.h"
@@ -63,7 +63,7 @@ class MedianSlopeEstimator {
unsigned int num_of_deltas_;
// Theil-Sen robust line fitting
double accumulated_delay_;
- std::list<DelayInfo> delay_hist_;
+ std::deque<DelayInfo> delay_hist_;
PercentileFilter<double> median_filter_;
double trendline_;
« no previous file with comments | « no previous file | webrtc/modules/congestion_controller/trendline_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698