[blink scheduler] Intensive wake up throttling.
The Blink Scheduler limits wake ups from throttleable TaskQueues to 1 per second as soon as the page becomes hidden and non-audible. This CL adds a feature to additionally limit the wake up rate to 1 per minute after 5 minutes in background (both values are configurable). Local experiments show that this improves battery life when multiple background tabs are open (see doc linked on the bug). Potential future improvements: - Allow N unthrottled wake ups after a page is backgrounded. Increment the budget of unthrottled wake ups when a page communicates with the user by updating its title/favicon, playing a sound or displaying a notification. This could improve support of Calendar or Reminder apps. - Wait until network is idle before intensively throttling wake ups. The intention is not to throttle pages that are loading. The 5 minutes grace period may already opt-out most loading pages. Bug: 1075553 Change-Id: Id46052276bec3384390b002cc5fd2f501e89670a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2171976 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by:Alexander Timin <altimin@chromium.org> Reviewed-by:
Sami Kyöstilä <skyostil@chromium.org> Cr-Commit-Position: refs/heads/master@{#774952}
Showing
Please register or sign in to comment