-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improve rule loading times in rule tree #464
Conversation
ppcad
commented
Oct 27, 2023
•
edited
Loading
edited
- Fix cnf to dnf conversion and improve its performance
- Optimize rule tree sorter performance
- Add rule tree changes to readme and changelog
* Fix cnf to dnf conversion and improve its performance * Optimize rule tree sorter performance * Add timeout for loading rules in the rule tree * Add rule tree changes to readme and changelog * Fix bug in rule parsing
as we reimplement metrics now, I suggest to wait with this to get vision about what is actual slow on loading rules and wich rules. Am I right, that improve rule loading times is only done because restarting pipelines seems to be slow? We implement some additional metrics for restarting pipelines. Having that, you should be able to identify what is actual slow in your configuration. A timeout feels like a workaround and does not solves the actual problem with the risk that some rules will be missing in processing. |
This change does include an optimization of rule sorting and dnf conversion. The algorithms did some redundant looping. |
# Conflicts: # CHANGELOG.md # logprep/framework/rule_tree/rule_tree.py
I removed the timeout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor change in Changelog please
# Conflicts: # CHANGELOG.md
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #464 +/- ##
==========================================
+ Coverage 92.23% 92.33% +0.10%
==========================================
Files 130 130
Lines 9478 9486 +8
==========================================
+ Hits 8742 8759 +17
+ Misses 736 727 -9 ☔ View full report in Codecov by Sentry. |