mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Implement uBO naming convention even more
parent
c85af5ef2c
commit
f1017b26eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue