Commit Graph
1 Commits
Author SHA1 Message Date
Veer Singh 4334390423 Cache the joined log buffer and skip it for single-line rules
The log buffer joins every buffered line and scans all of them for
each pattern on every push, which is wasted work when a pattern
cannot even match across lines. The buffer now caches the joined
string, and Push invalidates the cache. CompilePattern marks the
patterns that cannot match across lines (no start anchor, no way to
match a newline, and the appended \z anchor binds every branch) and
Match checks them against the most recent line alone.
2026-07-27 16:37:28 -07:00