ABP Syntax: Wildcard at the end?

General information, announcements and questions about the EasyList subscriptions.

Moderator: EasyList authors

Post Reply
huuurz
Site Member
Site Member
Posts: 14
Joined: Sun Feb 12, 2017 4:29 pm
Reputation: 0

ABP Syntax: Wildcard at the end?

Post by huuurz » Tue Feb 14, 2017 11:51 am

Hi!

What's the difference between

Code: Select all

/_banners/
and

Code: Select all

/_banners/*
The first one (without the wildcard) is flagged as slow filter by a snail, the second one not.

Thanks,
huuurz

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 11823
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 94
Location: EasyList Forum

Post by smed79 » Tue Feb 14, 2017 12:31 pm

Hi,

no difference but /_banners/ with the snail icon is slow than /_banners/*
Not so slow but the wildcard * make it more efficient.
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

huuurz
Site Member
Site Member
Posts: 14
Joined: Sun Feb 12, 2017 4:29 pm
Reputation: 0

Post by huuurz » Tue Feb 14, 2017 12:46 pm

Yeah that is the strange thing.... although it is the (exact?) same rule, one time it is predicted to be fast, one time slow. Doesn't make sense to me. Maybe an internal technical thing?

Is the one with wildcard really faster? I mean it could just be a bug with the snail shown or not shown. Don't know how to test it.

But actually now that I know the rule is always add a (unnecessary) wildcard at the end, it doesn't really matter anymore. I will use wildcards at the end in cases like this. :banana:

intense
Contributor
Contributor
Posts: 6912
Joined: Wed Mar 27, 2013 9:56 am
Reputation: 80

Post by intense » Tue Feb 14, 2017 2:01 pm

The filter without the wildcard is interpreted as regex filter, so will be slower

huuurz
Site Member
Site Member
Posts: 14
Joined: Sun Feb 12, 2017 4:29 pm
Reputation: 0

Post by huuurz » Tue Feb 14, 2017 4:10 pm

@intense
Thank you, that was the answer I was searching for!

Post Reply