[ad_1]
Since Chrome’s inception, one of our 4 founding principles has been speed, and it remains a core principle that drives our work. Today’s The Fast and the Curious post shares how Chrome’s recent technical improvements helped us hit a new performance milestone on the Speedometer browser benchmark across all platforms.
Speed is a critical factor in determining your experience when browsing the web. The faster your browser runs, the more enjoyable your browsing experience will be. With the latest version of Chrome, we’ve dug deep into the Chrome engine to look for every opportunity to increase speed and efficiency, from improved caching to better memory management.
Improved HTML parsing and optimization of specific features
We discovered some targeted optimizations for the much used `Object.prototype.toString` and `Array.prototype.join` JS functions. We have also implemented targeted improvements in CSS’s InterpolableColor.
`innerHTML` is a very common way to update the DOM via JavaScript, so we’ve added specialized fast paths for parsing. To our happy surprise, it appears that some of this work will also benefit WebKit, which will also include it in its engine. Our goal is always to create a better web experience for all web users, so we’re happy to see this work making a bigger impact!
More efficient pointer compression and allocations in V8 and Oilpan
Pointer compression is used to save memory in both V8 and Oilpan (the garbage collector for DOM objects). We’ve optimized the way we compress and decompress pointers and avoid compressing high-traffic fields. Given how often these operations are performed, it has a large impact on performance. We also moved frequently accessed objects as JavaScript “undefined” to the top of the memory bases, allowing them to be accessed using faster machine code. The improved functionality and efficient pointer compression allowed us to achieve a 10% increase in Apple’s Speedometer 2.1 browser benchmark over the course of three months. Get the most out of high-end mobile devices
Chrome on Android has always been optimized for a small footprint, but the Android ecosystem is diverse and contains devices with different levels of capabilities. To maximize Chrome’s performance on high-end devices, we’re now targeting them with a version of Chrome that uses speed-optimized compiler flags instead of binary size.
For compatible devices, these versions of Chrome run the Speedometer 2.1 benchmark 30% faster.
Written by Thomas Nattestad, Senior Product Manager, and Andrew Grieve, Software Engineer
|
Sources 2/ https://blog.chromium.org/2023/04/more-ways-were-making-chrome-faster.html The mention sources can contact us to remove/changing this article |
[ad_2]