Performance of pure literal pattern database vs regular expressions
by David Wharton
Hello,
Hyperscan 5.2.0 brought with it the ability to compile pure literals,
e.g. hs_compile_lit_multi(). Other than the (arguable) convenience of
not having to encode some characters for PCRE, what is the advantage of
using the hs_compile_lit function(s) over just the hs_compile ones? Is
a pattern database of literals, compiled as such, optimized in such a
way as to perform better than if they had been compiled as regular
expressions?
Thank you.
-David Wharton
2 months, 2 weeks