-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove SIMD Feature #5184
Remove SIMD Feature #5184
Conversation
@@ -610,7 +552,6 @@ pub fn gt_eq_utf8_scalar<OffsetSize: OffsetSizeTrait>( | |||
/// Perform `left == right` operation on an array and a numeric scalar | |||
/// value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values. | |||
/// | |||
/// If `simd` feature flag is not enabled: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hasn't actually been true since #4701
/// Evaluate `op(left, right)` for [`PrimitiveArray`]s using a specified | ||
/// comparison function. | ||
#[deprecated(note = "Use BooleanArray::from_binary")] | ||
pub fn no_simd_compare_op<T, F>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opted to just remove these as the no_simd was confusing in the abscence of an explicit SIMD version, and they were deprecated already
/// Note that each slice should be 64 bytes and it is the callers responsibility to ensure | ||
/// that this is the case. If passed slices larger than 64 bytes the operation will only | ||
/// be performed on the first 64 bytes. Slices less than 64 bytes will panic. | ||
#[cfg(feature = "simd")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly arrow-buffer doesn't have a SIMD feature, so this has been silently not present by accident for a while. Likely since #2693
Ok, that then also fixes #5185 which I just created :) |
Changes look good to me 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. We've not used this simd feature but rely on auto-vectorization. This makes the code more clean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job. Thanks @tustvold
Appreciate #5100 of @jhorstmann
Which issue does this PR close?
Closes #46
Closes #54
Closes #2856
Closes #5185
Rationale for this change
#5100 removed the last major use of SIMD, so we can now remove this feature. I debated deprecating things first, but this got complicated as you can't really deprecate a trait, so I figured I would at least propose just ripping the band-aid off in one.
What changes are included in this PR?
Are there any user-facing changes?