Skip to content

Conversation

@rabbitstack
Copy link
Owner

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

For testing if the specific event bit is set, we use the map-backed bitmask. The event identifiers are expressed as an unsigned 64-bit integer. The collection of multiple bitsets permits checking whether the event type, event ID, or category bits are set. As an additional improvement, all known event IDs are put inside the mask and checked at the very early stage of event processing, dropping all uninterested or unknown event types and preventing unnecessary memory allocations.

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 other

Special notes for the reviewer


Does this PR introduce a user-facing change?


@rabbitstack rabbitstack force-pushed the more-efficient-event-bitsets branch 2 times, most recently from f08ea35 to d29ef90 Compare June 7, 2025 21:03
The new bitmask implementation is introduced to deal
with event id bits testing.
@rabbitstack rabbitstack force-pushed the more-efficient-event-bitsets branch 2 times, most recently from 55c5acd to a680bc3 Compare June 9, 2025 19:12
@rabbitstack rabbitstack merged commit 613e417 into master Jun 9, 2025
11 checks passed
@rabbitstack rabbitstack deleted the more-efficient-event-bitsets branch June 9, 2025 19:46
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.

2 participants