Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Compress basic rules #2

Open
Open
@ameshkov

Description

@ameshkov

We should try compressing simple basic rules.

Here's the algorithm.

Take simple third-party blocking rules (e.g. matching this regex: ^\|\|[a-z0-9_.-]+\^\$third-party$):

||example.org^$third-party
||example.com^$third-party

Compress them into a single rule:

^[htpsw]+:\/\/(example.org|example.com)[/:&?]?

The main question here is the impact on the content blocker performance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions