Skip to content

Conversation

@misaka10987
Copy link

This PR optimized CPU time of global exclusion wildcard rules testing by generating better regular expression.
A typical case of visiting https://www.bilibili.com/, with about 250 network requests and 27 global exclude, takes 100% cpu for 3s+ on firefox developer edition on Arch Linux and AMD 7900X. This PR fixed the issue and reduced CPU usage to less than 5% under the same case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant