Skip to content

Commit 4719995

Browse files
committed
Updated comment.
1 parent b420f15 commit 4719995

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cas_client/src/adaptive_concurrency/controller.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ impl ConcurrencyControllerState {
4747
/// A controller for dynamically adjusting the amount of concurrency on upload and download paths.
4848
///
4949
/// This controller uses two statistical models that adapt over time using exponentially weighted
50-
/// moving averages. The first is a model that predicts the overall current bandwith, and the second is
51-
/// a model of how many transfers complete within the predicted time.
50+
/// moving averages. The first is a model that predicts the overall current bandwith, and the second and the second is
51+
/// a model of the deviance between the actual transfer time and the predicted time based on a linear scaling of the
52+
/// concurrency.
5253
///
5354
/// The key insight is this:
55+
///
5456
/// 1. When a network connection is underutilized, the latency scales sublinearly with the number of parallel
5557
/// connections. In other words, adding another transfer does not affect the speed of the other transfers
5658
/// significantly.

0 commit comments

Comments
 (0)