Skip to content

Commit addacb3

Browse files
committed
refactor(logfiles): fix and optimize log search with binary I/O
Rewrite log search functions to use binary I/O and byte offsets for improved speed and correctness. This includes precise line boundary handling, efficient regex matching on bytes, and decoding only matched lines. The look-back error suppression logic is now handled with compiled byte regex pairs, and seek offsets are validated for safety. These changes improve performance and reliability when processing large log files and rotated logs.
1 parent 6c34f18 commit addacb3

File tree

1 file changed

+284
-147
lines changed

1 file changed

+284
-147
lines changed

0 commit comments

Comments
 (0)