Categories: Google Chrome

Google Chrome Is Testing Larger Cache Sizes To Increase Performance

Google Chrome Is Testing Larger Cache Sizes To Increase Performance

Google is experimenting with increased storage for the browser cache to reduce the performance hit caused by the recently added partitioned cache feature.

Before Chrome 85, the browser used a single storage bucket to store cached resources, such as images, audio, video, and HTML content for all pages that you have previously visited. When Chrome opens a web page, it will check if requested resources are stored in the cache, and if they are, load it from the local disk rather than download it from a remote server.

Using a single shared storage bucket for all cached resources, though, opens up a range of side-channel attacks that could allow sites to perform malicious activity.

“This opens the browser to a side-channel attack where one site can detect if another site has loaded a resource by checking if it’s in the cache. That sounds innocuous, but it can be used for many nefarious deeds such as discovering what’s in your inbox, contacts, etc.,”  Google Chrome engineers Josh Karlin and Shivani Sharma explain in a document on cache partitioning.

To prevent these side-channel attacks, Google added a new feature to Chrome 85 that partitions the browser’s disk cache so that each site utilizes its own cache that cannot be read by other sites.

Also Read: How a Smart Contract Audit Works and Why it is Important

Cache partitioning decreases performance

When Google tested this new feature, they found that it cause small performance hit, but it was outweighed by the security benefits.

“Early (canary/dev) results using top-frame-site show that the impact isn’t nearly as bad as feared. The cache hit rate drops by about 4% but changes to first contentful paint aren’t statistically significant and the overall fraction of bytes loaded from the cache only drops from 39.1% to 37.8%. This may change as we progress to beta and stable but it seems like an encouraging start,” the Google engineers stated.

This performance hit is caused by resources previously shared among all sites now having to be downloaded for every site that uses them.

To improve this feature’s performance, Google is experimenting with increased disk cache sizes to prevent resources from being evicted from the cache to quickly.

“Add code to enable experimentation of different http cache sizes. Now that cache will be partitioned, it makes sense to see if increasing the cache size helps offset some performance impact by lowering the eviction rate,” Sharma explained in a Chrome Gerrit post.

As part of this test, the browser’s performance will be measured at different disk cache sizes to see if increasing them to larger values positively impacts performance. During this test, Google plans on testing cache storage that is 2x, 2.5x, and 3x the normal cache size.

Portion of source code used in Chrome experiment

Google is hoping that increasing the disk cache size will reduce the number of times the browser has to remove older cached items as storage runs out. This increased storage would then potentially increase the number of cached items at one time and improve web browsing performance.

Also Read: What Is A Governance Framework? The Importance And How It Works

It is unknown if this change is being tested in Google Chrome Canary builds or internal builds.

Privacy Ninja

Recent Posts

Enhancing Website Security: The Importance of Efficient Access Controls

Importance of Efficient Access Controls that every Organisation in Singapore should take note of. Enhancing…

2 weeks ago

Prioritizing Security Measures When Launching Webpage

Prioritizing Security Measures When Launching a Webpage That Every Organisation in Singapore should take note…

2 weeks ago

The Importance of Regularly Changing Passwords for Enhanced Online Security

Importance of Regularly Changing Passwords for Enhance Online Security that every Organisation in Singapore should…

3 weeks ago

Mitigating Human Errors in Organizations: A Comprehensive Approach to Data Protection and Operational Integrity

Comprehensive Approach to Data Protection and Operational Integrity that every Organsiation in Singapore should know…

3 weeks ago

The Importance of Pre-Launch Testing in IT Systems Implementation

Here's the importance of Pre-Launch Testing in IT Systems Implementation for Organisations in Singapore. The…

4 weeks ago

Understanding Liability in IT Vendor Relationships

Understanding Liability in IT Vendor Relationships that every Organisation in Singapore should look at. Understanding…

1 month ago