Skip to content

Optimize functional selector matching - #705

Merged
philss merged 1 commit into
philss:mainfrom
preciz:perf-opt-functional-selector-minimal
Sep 23, 2026
Merged

philss merged 1 commit into
philss:mainfrom
preciz:perf-opt-functional-selector-minimal

Conversation

@preciz

@preciz preciz commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Instead of generating an+b values until one matches, solve the formula directly with bounds and a remainder check. This turns each match from a stream scan into O(1) arithmetic.

Instead of generating an+b values until one matches, solve the formula directly with bounds and a remainder check. This turns each match from a stream scan into O(1) arithmetic.
@philss
philss merged commit 22fa6f4 into philss:main Sep 23, 2026
6 checks passed
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