Re:Show HN: Adblock Fast
by gorhill on Wednesday September 09, 2015 @05:09PM
(#10194624)
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).
> 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).