mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-10 08:12:21 +03:00
allow streams to marked as exhausted in more cases
At stream boundaries, we can mark streams as exhausted if there are no groups active and there are no other ways to report matches. This allows us to stop maintaining the history buffer on subsequent stream writes. Previously, streams were only marked as exhausted if a pure highlander case reported all patterns or the outfix in a sole outfix case died.
This commit is contained in:
@@ -722,7 +722,9 @@ void makeEodEventLeftfix(RoseBuildImpl &build, RoseVertex u,
|
||||
RoseEdge e = add_edge(v, w, g);
|
||||
g[e].minBound = 0;
|
||||
g[e].maxBound = 0;
|
||||
g[e].history = ROSE_ROLE_HISTORY_LAST_BYTE;
|
||||
/* No need to set history as the event is only delivered at the last
|
||||
* byte anyway - no need to invalidate stale entries. */
|
||||
g[e].history = ROSE_ROLE_HISTORY_NONE;
|
||||
DEBUG_PRINTF("accept eod vertex (index=%zu)\n", g[w].index);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user