Skip to content

feat: add pyperscan support #5228

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ffontaine
Copy link
Contributor

hyperscan will run simultaneously all version checkers on a file which reduce processing time.

pyperscan package is used instead of the most well-known hyperscan package as pyperscan allows to add a tag for each pattern. This feature will allow to retrieve easily the checker associated to the matched pattern.

On my local machine, running a scan on an embedded firmware takes 220 seconds with pyperscan instead of 326 seconds.

However, pyperscan is slower on a single file and unsupported on Windows, so add a --pyperscan option (disabled by default)

Fix #2485

hyperscan will run simultaneously all version checkers on a file which
reduce processing time.

pyperscan package is used instead of the most well-known hyperscan
package as pyperscan allows to add a tag for each pattern. This feature
will allow to retrieve easily the checker associated to the matched
pattern.

On my local machine, running a scan on an embedded firmware takes 220
seconds with pyperscan instead of 326 seconds.

However, pyperscan is slower on a single file and unsupported on
Windows, so add a --pyperscan option (disabled by default)

Fix intel#2485

Signed-off-by: Fabrice Fontaine <[email protected]>
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.

hyperscan for regex matching?
1 participant