Live data from Hacker News

How the most popular Chrome extensions affect browser performance

debugbear.com

41–50 of 136 posts

Re: How the most popular Chrome extensions affect browser performance

#41
> The Avira Browser Safety extension contains a website allowlist with 30k+ regular expressions. When the user navigates to a new page Avira checks if the page URL is in that allowlist

I wonder who thought that would be a good idea... Sounds like something that could be significantly improved by compiling all patterns into a single statemachine.

Re: How the most popular Chrome extensions affect browser performance

#43

Great research! I'm a user of evernote web clipper and seeing that they're adding 3mb to every page that I'm using is extremely discouraging. My browse to clip ratio is around 1000:1 and I'm probably removing the extension after this. Just wondering, can browser extensions codesplit their bundles? If it's possible, then it is really disappointing to see these large companies loading huge bundles on initial load.

Did you try to set the extension to "run on click"? Right-click extension icon, "This can read and change site data" -> "When you click the extension". I didn't try it myself (it might require reloading the page), but might be an option for 1000:1 browse to clip ratio.

Awesome - Didn't know about this trick. I'm reconfiguring most of the my extensions to this.

Gracias!

Re: How the most popular Chrome extensions affect browser performance

#44
post #16
post #12

Most ad blockers work by blocking certain network requests that are initiated by the page. DDG Privacy Essentials reduces the number of network requests by 95% and the download weight by 80%. DuckDuckGo Privacy Essentials reduces the CPU time of the article page from 31s to just 1.6s. All other tested extensions also bring CPU time down to at most 10s. It seems the single most important thing regarding Real Word Perf…

Because the most popular browser is made by a company that makes the vast majority of their money from ads.

And to large extent, the same developers that complain about ads are the ones to blame that Chrome has reached that market leadership.

Re: How the most popular Chrome extensions affect browser performance

#45

> The Avira Browser Safety extension contains a website allowlist with 30k+ regular expressions. When the user navigates to a new page Avira checks if the page URL is in that allowlist I wonder who thought that would be a good idea... Sounds like something that could be significantly improved by compiling all patterns into a single statemachine.

That's what Safari does for its ad blocker plugin API. Also allows for greater privacy since the browser can apply a static list and the plugin never knows what you sites you browsed to. Google is trying to move to enforce the same model but it's limiting in some ways and generated massive uproar.

Re: How the most popular Chrome extensions affect browser performance

#46
post #12

Most ad blockers work by blocking certain network requests that are initiated by the page. DDG Privacy Essentials reduces the number of network requests by 95% and the download weight by 80%. DuckDuckGo Privacy Essentials reduces the CPU time of the article page from 31s to just 1.6s. All other tested extensions also bring CPU time down to at most 10s. It seems the single most important thing regarding Real Word Perf…

Firefox does. https://support.mozilla.org/en-US/kb/enhanced-tracking-prote...

It blocks some tracking, but is it a good content blocker? Last time I checked I still needed to install ublock or equivalent for acceptable performance. How hard it is to incorporate something an extension already provides?

Re: How the most popular Chrome extensions affect browser performance

#47
post #16
post #12

Most ad blockers work by blocking certain network requests that are initiated by the page. DDG Privacy Essentials reduces the number of network requests by 95% and the download weight by 80%. DuckDuckGo Privacy Essentials reduces the CPU time of the article page from 31s to just 1.6s. All other tested extensions also bring CPU time down to at most 10s. It seems the single most important thing regarding Real Word Perf…

Because the most popular browser is made by a company that makes the vast majority of their money from ads.

[deleted]

Re: How the most popular Chrome extensions affect browser performance

#48
post #29

> "DDG Privacy Essentials does a simple object property lookup based on the request domain, an operation that is practically instantaneous" This sounds interesting. A bit of searching is not providing much enlightenment - anyone care to explain in a bit more detail? Also, if it is so fast, why aren't all the filter add-ons doing it?

When you have an array, it's way faster to check the existence of array[key], which is O(1), than to loop over the full array to find if one of the values match the one you're searching for, which is O(n).

This is used in hash tables, for example: https://en.wikipedia.org/wiki/Hash_table

Object properties in JS are mostly the same thing.

I guess other extensions can't do the same because they don't have a simple value to search in a whitelist, but rather a list of regex which must all be executed.

Re: How the most popular Chrome extensions affect browser performance

#49

It seems like the included pw managers like LastPass & Dashlane also impact page loading drastically. Is there even an alternative with less impact?

Anecdotally, I noticed a browsing speed up when I switched from LastPass to Bitwarden on older laptops.

Re: How the most popular Chrome extensions affect browser performance

#50
post #12

Most ad blockers work by blocking certain network requests that are initiated by the page. DDG Privacy Essentials reduces the number of network requests by 95% and the download weight by 80%. DuckDuckGo Privacy Essentials reduces the CPU time of the article page from 31s to just 1.6s. All other tested extensions also bring CPU time down to at most 10s. It seems the single most important thing regarding Real Word Perf…

Brave Browser is Chrome with that built into it.
Post reply on HN