From f1017b26eb5290ceb227370f286f145868ecabee Mon Sep 17 00:00:00 2001 From: neonItem <67307199+androidkotlindev@users.noreply.github.com> Date: Fri, 18 Mar 2022 21:57:48 +0200 Subject: [PATCH] Implement uBO naming convention even more --- ...pabilities-as-a-result-of-being-lighter-on-the-browser\".md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/About-\"uBlock-is-inferior-in-capabilities-as-a-result-of-being-lighter-on-the-browser\".md" "b/About-\"uBlock-is-inferior-in-capabilities-as-a-result-of-being-lighter-on-the-browser\".md" index 91c6958..6fd8e61 100644 --- "a/About-\"uBlock-is-inferior-in-capabilities-as-a-result-of-being-lighter-on-the-browser\".md" +++ "b/About-\"uBlock-is-inferior-in-capabilities-as-a-result-of-being-lighter-on-the-browser\".md" @@ -9,7 +9,7 @@ This is my reference answer to such claims. uBO is lighter on the browser because of many choices which were made regarding how the filtering engine is designed internally. A coarse enumeration of these choices are: - lean in-memory filter representation - plain string comparisons instead of regular expressions wherever possible - - a majority of network filters can be reduced to plain string comparison, and this is what uBO does internally for these filters, whereas Adblock Plus (ABP) converts _all_ network filters into regular expressions. + - a majority of network filters can be reduced to plain string comparison, and this is what uBO does internally for these filters, whereas ABP converts _all_ network filters into regular expressions. - Example, `&ad_zones=` (filter found in EasyList). - ABP's code conceptually is: `/&ad_zones=/.test(url)` -- the whole URL must be scanned - uBO's code conceptually is: `url.startsWith('&ad_zones=', i)` -- no scanning of the URL