-
Notifications
You must be signed in to change notification settings - Fork 456
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
Speedup duplicate rule detection #1068
Conversation
Hey @Antiarchitect, thanks for this. Out of interest, have you tested against the scenario mentioned in the issue? |
6bbe2f7
to
b057000
Compare
Will test it in a day or two - we're facing the same issue when number of rules are hundreds |
I will think about another approach to store a hash with |
We've tested
and it gets back to normal. Please do something. It seems we need global hash with O(1) check of a duplicate. Or memorizing |
@Antiarchitect We appreciate you going in to such detail with this. From memory this was a trick one.. due to the requirements around the change O(1) may be hard to achieve.. but i'm certain we can make it faster! I'll bring it up with the team and get some eyes on it. |
Thanks for looking @chelnak. This is an important fix for us as well. |
Hello! 👋 This pull request has been open for a while and has had no recent activity. We've labelled it with If you are waiting on a response from us we will try and address your comments on a future Community Day. Alternatively, if it is no longer relevant to you please close the PR with a comment. Please note that if a pull request receives no update for 7 after it has been labelled, it will be closed. We are always happy to re-open pull request if they have been closed in error. |
Hi @Antiarchitect, sorry for the long delay in feedback. In order to keep better track of this issue and avoid our PR page cluttering, we would like for this topic to be moved into our "Issues" page and, if possible, linked onto our current ongoing discussion about the Firewall module re-architecture project. |
Closing stale PR. Recommended action has already been stated above. |
It seems I've simplified and speed up
duplicate_rule?
function. May be related to #1053