mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
minor eager prefixes improvements
- count eager prefixes as always run engine when comparing with smwr - only check if a prefix is vacuous after adding back literal fragments
This commit is contained in:
@@ -1234,6 +1234,11 @@ u32 roseQuality(const RoseEngine *t) {
|
||||
always_run++;
|
||||
}
|
||||
|
||||
if (t->eagerIterOffset) {
|
||||
/* eager prefixes are always run */
|
||||
always_run++;
|
||||
}
|
||||
|
||||
const HWLM *ftable = getFLiteralMatcher(t);
|
||||
if (ftable) {
|
||||
/* TODO: ignore conditional ftables, or ftables beyond smwr region */
|
||||
|
||||
Reference in New Issue
Block a user