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

Unified Diff: webrtc/modules/congestion_controller/trendline_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
Index: webrtc/modules/congestion_controller/trendline_estimator.h
diff --git a/webrtc/modules/congestion_controller/trendline_estimator.h b/webrtc/modules/congestion_controller/trendline_estimator.h
index 7ca9b7d072beaf60fc3d6d202a191d5b3eb39136..f09ccb5629a1eb1a3c10ee74aace15be88d462ee 100644
--- a/webrtc/modules/congestion_controller/trendline_estimator.h
+++ b/webrtc/modules/congestion_controller/trendline_estimator.h
@@ -13,7 +13,7 @@
#include <stddef.h>
#include <stdint.h>
-#include <list>
+#include <deque>
#include <utility>
#include "webrtc/base/constructormagic.h"
@@ -61,7 +61,7 @@ class TrendlineEstimator {
double accumulated_delay_;
double smoothed_delay_;
// Linear least squares regression.
- std::list<std::pair<double, double>> delay_hist_;
+ std::deque<std::pair<double, double>> delay_hist_;
double trendline_;
RTC_DISALLOW_COPY_AND_ASSIGN(TrendlineEstimator);

Powered by Google App Engine
This is Rietveld 408576698