intel / intel/hyperscan

Regarding hs_multi_compile and hs_scan functionality

Open
#411 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.5k
Forks
816
Avg merge
4d 21h
Merged PRs (30d)
2

Description

I am having doubt regarding multiple regex scan.
Let say I have 30 different regex patterns to scan on a single buffer and I compile all of them using hs_multi_compile in single database, then used that database in hs_scan, so will hyperscan scan buffer separately for each pattern , or will it scan complete buffer single time for all pattern. (ps. - Point is how many times buffer will be scanned.)

Also if it scan's separately , then how it will be more effective or efficient than compiling all pattern's separately using hs_compile and then calling hs_scan separately for each pattern.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.