diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 06:17:19 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-18 06:17:19 +0000 |
commit | 85d48aefa79319cd169019d0b9f5dab742e5484b (patch) | |
tree | 6d2cda7840dfe49cb4696ce090c5a6ef11db6bcd /chrome/browser/net/dns_global.cc | |
parent | c9abf24159ca4d02762e97ec814e7427e9c508cc (diff) | |
download | chromium_src-85d48aefa79319cd169019d0b9f5dab742e5484b.zip chromium_src-85d48aefa79319cd169019d0b9f5dab742e5484b.tar.gz chromium_src-85d48aefa79319cd169019d0b9f5dab742e5484b.tar.bz2 |
Change DNS field trial to focus on congestion window setting
Stats suggest that optimal boundary for congestion detection
in DNS pre-resolution may be under 1 second. This change
focuses the field trial on that region.
r=willchan
Review URL: http://codereview.chromium.org/155723
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_global.cc')
-rw-r--r-- | chrome/browser/net/dns_global.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/net/dns_global.cc b/chrome/browser/net/dns_global.cc index 25829e7..434208b 100644 --- a/chrome/browser/net/dns_global.cc +++ b/chrome/browser/net/dns_global.cc @@ -573,12 +573,14 @@ DnsPrefetcherInit::DnsPrefetcherInit(PrefService* user_prefs, // First option is to disable prefetching completely. int disabled_prefetch = trial_->AppendGroup("_disabled_prefetch", kProbabilityPerGroup); - // Set parallel prefetch limit to 4 instead of default 8. - int parallel_4_prefetch = trial_->AppendGroup("_parallel_4_prefetch", - kProbabilityPerGroup); - // Set congestion detection at 500ms, rather than the 1 second default. + // Set congestion detection at 250, 500, or 750ms, rather than the 1 second + // default. + int max_250ms_prefetch = trial_->AppendGroup("_max_250ms_queue_prefetch", + kProbabilityPerGroup); int max_500ms_prefetch = trial_->AppendGroup("_max_500ms_queue_prefetch", kProbabilityPerGroup); + int max_750ms_prefetch = trial_->AppendGroup("_max_750ms_queue_prefetch", + kProbabilityPerGroup); // Set congestion detection at 2 seconds instead of the 1 second default. int max_2s_prefetch = trial_->AppendGroup("_max_2s_queue_prefetch", kProbabilityPerGroup); @@ -593,10 +595,12 @@ DnsPrefetcherInit::DnsPrefetcherInit(PrefService* user_prefs, int max_queueing_delay_ms = kMaxQueueingDelayMs; - if (trial_->group() == parallel_4_prefetch) - max_concurrent = 4; + if (trial_->group() == max_250ms_prefetch) + max_queueing_delay_ms = 250; else if (trial_->group() == max_500ms_prefetch) max_queueing_delay_ms = 500; + else if (trial_->group() == max_750ms_prefetch) + max_queueing_delay_ms = 750; else if (trial_->group() == max_2s_prefetch) max_queueing_delay_ms = 2000; |