Skip to content

avx2 branch for bool take kernel - #10385

Merged
myrrc merged 7 commits into
developfrom
myrrc/bool-take-avx2
Oct 13, 2026
Merged

myrrc merged 7 commits into
developfrom
myrrc/bool-take-avx2

Conversation

@myrrc

@myrrc myrrc commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Add an AVX2 implementation for boolean take kernel. There are two options for implementation: with and without validity.
Without validity we don't need to check any bounds because we rely on scalar code already doing this (see minmax code).
With validity, we clamp the index to be in valid bounds, so there never will be an out of bounds read, and collect violations. A violation is when for a non-NULL index clamped index isn't equal to the original index. Then we panic if there are any violations, thus an invalid request always panics.

Change the scalar nullable code so it also operated on 8 packed values instead of querying validity bits individually.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/performance A performance improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants