https://github.com/rocketshipapps/adblockfast/blob/master/op...
Are these regular expressions machine-compiled?
"Extremely powerful, regular expressions can surprisingly be done in linear time if you use a strict set of regular expression characters through Thompson’s NFA algorithm. Safari’s Content Blocker implementation in fact imposes this strict regular expression limitation ..."
0. http://blog.appgrounds.com/content-blockers-beat-adblocking/
> 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).
We didn’t benchmark uBlock [Origin], but I just ”ran” the filesize benchmark :-):
* uBlock Origin: 1.41 MB
* uBlock: 3.54 MB
* Adblock Fast: 96.59 KB
Users email us to complain when they see posts that break this, because "Show HN" is an implicit contract that they'll be able to try a piece of software out. (The standards are looser for non-software projects.)
My ff with no-script is 10-50 times faster than chrome on most of the websites. Should be safer too.
Is there any no-script options for iOS? (default with JS off but selectively turn on for just a few trust websites.)
Adblockers and Noscript are not in the same category. Adblockers are useful for everyone, and shouldn't break things as long as the block list is well curated. Noscript is for highly technical users who know they're going to break many sites they visit and are prepared to deal with the pain of doing so and debugging the result because they consider it worth the cost.
Also, I get that regex is how you do it on iOS9 and it's fast on there because of Apple's specific regex implementation, but you're misleading people that your 7 humongous regex are going to be faster than flagship blockers (uBlock Origin) on the desktop.
The authors of this product should run their adblocker against all of them here: https://www.raymond.cc/blog/10-ad-blocking-extensions-tested...