intel / intel/hyperscan

performance question

Open
#229 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 using hyperscan in BLOCK mode, compiled about 4k patterns in one database by using hs_compile_multi.

about 400 patterns are real regex, and about 3600 patterns are pure literal like abc

to improve the scan performance, will it be helpful if i split 4k pattern into two databases?
that is, for 3600 patterns( pure literal ), use hs_compile_lit_multi to compile, and for 400 patterns(real regex), use hs_compile_multi.

and hs_scan 2 times. is it helpful? thanks.

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.