Faster rendering tricks

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
ziyaretçi

Faster rendering tricks

Post by ziyaretçi »

Hi,

I'm writing my ABP filters by myself and want to learn how I can keep rendering speed as high as I can, because I know using ABP slows down rendering speed even at low level and I have a quite old PC.

1. I'd like to know if

Code: Select all

||one.com^$domain=two.com
will make browsing faster than if I used

Code: Select all

||one.com^
I know that the second filter will block any elements from one.com at any web site, but the first filter will block anything from one.com only when I'm at two.com.

How does ABP deal with domain restriction filters? Does ABP just ignore the first filter at every web site I visit except two.com and decide not to use it before content is rendered, so that it will lead less rendering speed loss?

2. Should I leave

Code: Select all

||ad.domain.com^
and

Code: Select all

||ad2.domain.com^
as seperate filters or just use the following?

Code: Select all

||ad*.domain.com^
Thanks for your answers.
Wladimir Palant

Re: Faster rendering tricks

Post by Wladimir Palant »

1. No, the domain restriction doesn't affect performance. Right now domains are only checked after it has been determined that the rule matches the address - this is still the most efficient approach.
2. Leave them as separate filters. In Adblock Plus additional filters (except the ones marked as "slow") have practically no performance impact, by keeping two filters you won't make anything slow. So you should prefer precise filters over generic filters.
ziyaretçi

Re: Faster rendering tricks

Post by ziyaretçi »

Thanks for the answers Wladimir.
Locked