forked from WithSecureLabs/chainsaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak: futher optimisations by changing the hash algorithm
From benchmarking it was clear that most of the time when Chainsaw is hunting is spent on accessing values from objects (hashmap lookups). The preprocssing optimisation was a good step forwards but only had a noticible impact when single thread or on very large rule sets. It was still apparent that the lookups were the true bottleneck. Luckily there is no need for a cryptographically safe hashing algorithm. So swapping to FxHashMap makes sense as that is what it is for. This optimisation as noted in the code has not been applied to search but when it is the same improvement will be seen when using search.
- Loading branch information
1 parent
296cdd9
commit 8b39037
Showing
7 changed files
with
133 additions
and
76 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.