Skip to content

perf(rule_engine): Read file data via overlapped I/O#632

Merged
rabbitstack merged 5 commits intomasterfrom
read-file-with-timeout
Feb 28, 2026
Merged

perf(rule_engine): Read file data via overlapped I/O#632
rabbitstack merged 5 commits intomasterfrom
read-file-with-timeout

Conversation

@rabbitstack
Copy link
Owner

What is the purpose of this PR / why it is needed?

Performing I/O operations in the event trace callback can quickly create a bottleneck and cause delayed event processing. To mitigate this unwanted effect, file information parsing is now performed in a lazy manner when the condition is evaluated. Additionally, the file data is read via overlapped I/O driven by a timeout. The rule conditions are rearranged to defer filter evaluation as late as possible.

What type of change does this PR introduce?


Uncomment one or more /kind <> lines:

/kind feature (non-breaking change which adds functionality)

/kind bug-fix (non-breaking change which fixes an issue)

/kind refactor (non-breaking change that restructures the code, while not changing the original functionality)

/kind breaking (fix or feature that would cause existing functionality to not work as expected

/kind cleanup

/kind improvement

/kind design

/kind documentation

/kind other (change that doesn't pertain to any of the above categories)

Any specific area of the project related to this PR?


Uncomment one or more /area <> lines:

/area instrumentation

/area telemetry

/area rule-engine

/area filters

/area yara

/area event

/area captures

/area alertsenders

/area outputs

/area rules

/area filaments

/area config

/area cli

/area tests

/area ci

/area build

/area docs

/area deps

/area evasion

/area other

Special notes for the reviewer


Does this PR introduce a user-facing change?


@rabbitstack rabbitstack force-pushed the read-file-with-timeout branch from 2c722eb to 4ac254a Compare February 27, 2026 18:17
@rabbitstack rabbitstack force-pushed the read-file-with-timeout branch from 4ac254a to 6c83564 Compare February 28, 2026 13:45
@rabbitstack rabbitstack merged commit 13e4b21 into master Feb 28, 2026
11 checks passed
@rabbitstack rabbitstack deleted the read-file-with-timeout branch February 28, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant