Skip to content

Fix toggle mask compilation and evaluation with ored terms#1976

Open
60k41p wants to merge 1 commit into
SanderMertens:masterfrom
VerdantInteractive:or-toggle-fix
Open

Fix toggle mask compilation and evaluation with ored terms#1976
60k41p wants to merge 1 commit into
SanderMertens:masterfrom
VerdantInteractive:or-toggle-fix

Conversation

@60k41p

@60k41p 60k41p commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

@60k41p 60k41p marked this pull request as draft March 1, 2026 04:54
@60k41p 60k41p changed the title Fix toggle mask compilation and evaluation Fix toggle mask compilation and evaluation with ored terms Mar 1, 2026
@60k41p 60k41p marked this pull request as ready for review March 1, 2026 09:22
@60k41p 60k41p force-pushed the or-toggle-fix branch 2 times, most recently from 18a2b09 to c45afbd Compare March 18, 2026 12:00
Optimisation:
- Compute or_fields once per evaluation (not per block)
- Add or_fields to toggle context struct and use it to skip OR processing in the hot loop when there are no OR toggle terms (the common case)
- When there are OR fields, search terms by field_index (only for those fields)

Rebuild
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