Microsoft has always boasted that Edge was more friendly to a laptop's battery than Chrome. Now the company has brought its Windows-level power management experience to the table via a fix to the Chromium project.
SEE: How to build a successful developer career (free PDF)
Microsoft of course now contributes to Chromium and the company recently added a commit, spotted by MSPoweruser, which details how Google could improve a device's battery life by changing the way Chrome caches video on a machine.
"Today, media content is cached to disk during acquisition and playback. Keeping the disk active during this process increases power consumption in general, and can also prevent certain lower-power modes from being engaged in the operating system," wrote Shawn Pickett, a senior software engineer at Microsoft.
"Since media consumption is a high-usage scenario, this extra power usage has a negative impact on battery life. This change will prevent the caching of certain media content to disk for the purpose of improving device battery life for users."
Pickett proposed that Chromium "prevents streaming media content from being cached to disk where possible", pointing to his document on a Microsoft Edge page on GitHub, which explains how to improve battery life by avoiding unnecessary media caching.
Pickett notes his proposal is aimed at media playback scenarios where the user is watching content and occasionally going backwards to review some content.
"For these scenarios, there is no drawback in disabling the disk caching. Since the existing Media Source implementation already maintains the most recent content in memory, the user will still be able to engage in common scenarios such as scrubbing backwards a couple of seconds during playback without needing to reacquire the content from the network. The existing seek responsiveness will be maintained in these cases."
In a note posted to the Chromium Gerrit on Friday, a Google engineer explains that the change adopted "will prevent the caching of certain media content to disk for the purpose of improving device battery life for users."
As per TechDows, Google has added a flag, "Turn off caching of streaming media to disk" to the Canary build of Chrome for macOS, Windows, Linux, Chrome OS, and Android.
The fix should benefit all Chromium-based browsers, including the new Edge, and indirectly that should benefit the battery life of all Windows PCs, too.
More on Google, Microsoft, and Chrome
- Google, Mozilla: We're changing what you see in Chrome, Firefox address bars
- Chrome's 'more private' Incognito mode: Websites can still detect you're using it
- Google: We'll give you better malware protection in Chrome, but only if you sign in
- Chrome on Android: Phishing attackers can now trick you with fake address bar
- Microsoft confirms that Chrome extensions will run on new Edge browser
- Google: High-risk G Suite users now get same advanced security we use in-house
- Google's new Gmail security: If you're a high-value target, you'll use physical keys
- The difference between Gmail, a Google Account, and G Suite accounts TechRepublic
- Gmail confidential mode for G Suite launching in June CNET