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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2855673002: Tweak client-side default scheduler configs to match latest server configs. (Closed)
Patch Set: Created 3 years, 8 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 | ios/web/app/web_main_loop.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 9f9d0a64b0949da39b53065fe1ec771e23d027d0..7b6135ce7a876b1dd5cea190b4056c68c68a2478 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -406,6 +406,7 @@ GetDefaultTaskSchedulerInitParams() {
using StandbyThreadPolicy =
base::SchedulerWorkerPoolParams::StandbyThreadPolicy;
#if defined(OS_ANDROID)
+ // Mobile config, for iOS see ios/web/app/web_main_loop.cc.
return base::MakeUnique<base::TaskScheduler::InitParams>(
base::SchedulerWorkerPoolParams(
StandbyThreadPolicy::ONE,
@@ -422,8 +423,9 @@ GetDefaultTaskSchedulerInitParams() {
base::SchedulerWorkerPoolParams(
StandbyThreadPolicy::ONE,
base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.3, 0),
- base::TimeDelta::FromSeconds(30)));
+ base::TimeDelta::FromSeconds(60)));
#else
+ // Desktop config.
return base::MakeUnique<base::TaskScheduler::InitParams>(
base::SchedulerWorkerPoolParams(
StandbyThreadPolicy::ONE,
@@ -432,7 +434,7 @@ GetDefaultTaskSchedulerInitParams() {
base::SchedulerWorkerPoolParams(
StandbyThreadPolicy::ONE,
base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.1, 0),
- base::TimeDelta::FromSeconds(30)),
+ base::TimeDelta::FromSeconds(40)),
base::SchedulerWorkerPoolParams(
StandbyThreadPolicy::ONE,
base::RecommendedMaxNumberOfThreadsInPool(8, 32, 0.3, 0),
@@ -443,7 +445,7 @@ GetDefaultTaskSchedulerInitParams() {
base::SchedulerWorkerPoolParams(
StandbyThreadPolicy::ONE,
base::RecommendedMaxNumberOfThreadsInPool(8, 32, 0.3, 0),
- base::TimeDelta::FromSeconds(30),
+ base::TimeDelta::FromSeconds(60),
base::SchedulerBackwardCompatibility::INIT_COM_STA));
#endif
}
« no previous file with comments | « no previous file | ios/web/app/web_main_loop.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698