4 ms·
The article you linked too says: > In contrast, adblockers like Adblock Plus rely on javascript’s built in regular expression parser This is not accurate for
by gorhill 11y ago
The article you linked too says:
> In contrast, adblockers like Adblock Plus rely on javascript’s built in regular expression parser
This is not accurate for uBlock Origin. A majority of network filters in EasyList, EasyPrivacy, etc. do not need to be implemented as regular expressions, and for these uBlock Origin does not use a regular expression, it's simply a straightforward string comparison.
Also, there are further optimizations when a filter is just a hostname (these are common too, especially in HOSTS files which can be parsed by uBlock).