Implement uBO naming convention even more

neonItem 2022-03-18 21:57:48 +02:00
parent c85af5ef2c
commit f1017b26eb

@ -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