10000 Decrease processing time of rules, fixes #1665 #1708 by airween · Pull Request #1791 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Decrease processing time of rules, fixes #1665 #1708 #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2020

Conversation

airween
Copy link
Contributor
@airween airween commented Jun 5, 2020

This PR fixes the #1665, which created in old repository, and the migration bot copied here. Later @fzipi created a reminder.

In the old repo, there was a fix with so many comments. @allanrbo and @mirkodziadzka-avi found two similar solutions. I made a tool to make some comparisons for performance. I found that the first solution from Allan gives better performance, but we stayed in we keep the more clear solutions.

The diff is a bit different than the original pull request. I assume Allan assembled the regexes (from the data files) with regex-assemble.pl, not the regexp-assemble-v2.pl, and we didn't realized that some regression tests were failed.

Now I assembled the data files with regex-assemble-v2.pl, and appended the (?i: modifier. Now all regression test were passed.

Hope we can merge this PR before the release of v3.3.

Credits are for @allanrbo and @mirkodziadzka-avi. Thanks for all participants.

@fzipi
Copy link
Member
fzipi commented Jun 9, 2020

LGTM!

@fzipi fzipi added the 🚀 enhancement New feature or request label Jun 9, 2020
@lifeforms lifeforms self-assigned this Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0