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

Issue 2577463002: Avoid precision loss in TrendlineEstimator from int64_t -> double conversion (Closed)

Created:
4 years ago by terelius
Modified:
4 years ago
Reviewers:
brandtr, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid precision loss in TrendlineEstimator by passing the arrival time as an int64_t instead of a double. BUG=webrtc:6884 Committed: https://crrev.com/c12cbaf9dd0729dd45f3fc45a1938d1b3455e40a Committed: https://crrev.com/b3564adc91b0ff047ac29a9855ec96b247bf0634 Cr-Original-Commit-Position: refs/heads/master@{#15631} Cr-Commit-Position: refs/heads/master@{#15641}

Patch Set 1 #

Patch Set 2 : Avoid precision loss in TrendlineFilter by passing the arrival time as an int64_t rather than a dou… #

Total comments: 5

Patch Set 3 : Simplify/refactor unit test. #

Patch Set 4 : Spelling #

Patch Set 5 : Increase tolerance in unit test. #

Total comments: 6

Patch Set 6 : Nits #

Patch Set 7 : Rebase #

Patch Set 8 : Move test function to anonymous namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -84 lines) Patch
M webrtc/modules/congestion_controller/trendline_estimator.h View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/trendline_estimator.cc View 1 2 3 4 5 4 chunks +22 lines, -12 lines 0 comments Download
M webrtc/modules/congestion_controller/trendline_estimator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -70 lines 0 comments Download

Messages

Total messages: 37 (21 generated)
terelius
4 years ago (2016-12-14 09:00:49 UTC) #2
brandtr
Looks good, just one question. https://codereview.webrtc.org/2577463002/diff/20001/webrtc/modules/congestion_controller/trendline_estimator.cc File webrtc/modules/congestion_controller/trendline_estimator.cc (right): https://codereview.webrtc.org/2577463002/diff/20001/webrtc/modules/congestion_controller/trendline_estimator.cc#newcode32 webrtc/modules/congestion_controller/trendline_estimator.cc:32: double x_avg = sum_x ...
4 years ago (2016-12-14 09:12:39 UTC) #3
terelius
On 2016/12/14 09:12:39, brandtr wrote: > Looks good, just one question. > > https://codereview.webrtc.org/2577463002/diff/20001/webrtc/modules/congestion_controller/trendline_estimator.cc > ...
4 years ago (2016-12-14 09:28:22 UTC) #4
brandtr
On 2016/12/14 09:28:22, terelius wrote: > On 2016/12/14 09:12:39, brandtr wrote: > > Looks good, ...
4 years ago (2016-12-14 09:33:03 UTC) #5
terelius
Refactored the unit test. Please take another look. https://codereview.webrtc.org/2577463002/diff/20001/webrtc/modules/congestion_controller/trendline_estimator.h File webrtc/modules/congestion_controller/trendline_estimator.h (right): https://codereview.webrtc.org/2577463002/diff/20001/webrtc/modules/congestion_controller/trendline_estimator.h#newcode56 webrtc/modules/congestion_controller/trendline_estimator.h:56: // ...
4 years ago (2016-12-14 14:22:32 UTC) #8
brandtr
lgtm with some new nits :) https://codereview.webrtc.org/2577463002/diff/80001/webrtc/modules/congestion_controller/trendline_estimator.cc File webrtc/modules/congestion_controller/trendline_estimator.cc (right): https://codereview.webrtc.org/2577463002/diff/80001/webrtc/modules/congestion_controller/trendline_estimator.cc#newcode41 webrtc/modules/congestion_controller/trendline_estimator.cc:41: if (denominator != ...
4 years ago (2016-12-15 12:06:08 UTC) #12
terelius
https://codereview.webrtc.org/2577463002/diff/80001/webrtc/modules/congestion_controller/trendline_estimator.cc File webrtc/modules/congestion_controller/trendline_estimator.cc (right): https://codereview.webrtc.org/2577463002/diff/80001/webrtc/modules/congestion_controller/trendline_estimator.cc#newcode41 webrtc/modules/congestion_controller/trendline_estimator.cc:41: if (denominator != 0) On 2016/12/15 12:06:08, brandtr wrote: ...
4 years ago (2016-12-15 13:11:08 UTC) #13
brandtr_google
On 2016/12/15 13:11:08, terelius wrote: > https://codereview.webrtc.org/2577463002/diff/80001/webrtc/modules/congestion_controller/trendline_estimator.cc > File webrtc/modules/congestion_controller/trendline_estimator.cc (right): > > https://codereview.webrtc.org/2577463002/diff/80001/webrtc/modules/congestion_controller/trendline_estimator.cc#newcode41 > ...
4 years ago (2016-12-15 13:44:06 UTC) #14
stefan-webrtc
lgtm
4 years ago (2016-12-15 13:48:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2577463002/120001
4 years ago (2016-12-15 14:03:03 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-15 14:20:02 UTC) #21
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/c12cbaf9dd0729dd45f3fc45a1938d1b3455e40a Cr-Commit-Position: refs/heads/master@{#15631}
4 years ago (2016-12-15 14:20:09 UTC) #23
terelius
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.webrtc.org/2582513002/ by terelius@webrtc.org. ...
4 years ago (2016-12-15 14:42:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2577463002/140001
4 years ago (2016-12-15 16:18:50 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-15 16:20:28 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-15 16:20:35 UTC) #37
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b3564adc91b0ff047ac29a9855ec96b247bf0634
Cr-Commit-Position: refs/heads/master@{#15641}

Powered by Google App Engine
This is Rietveld 408576698