-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
perf: Improve Bitmap construction performance #15570
Conversation
@@ -90,8 +91,7 @@ where | |||
.zip(a3_chunks) | |||
.map(|((a1, a2), a3)| op(a1, a2, a3)); | |||
|
|||
let buffer = chunk_iter_to_vec(chunks.chain(std::iter::once(op(rem_a1, rem_a2, rem_a3)))); |
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.
Remove chains
as they require extra branches on iteration.
2 => combine_validities_and(bitmaps.pop(), bitmaps.pop()), | ||
3 => combine_validities_and3(bitmaps.pop(), bitmaps.pop(), bitmaps.pop()), | ||
_ => { | ||
let mut iterators = bitmaps |
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.
Single pass/ allocation to combine bitmaps.
@@ -11,10 +11,7 @@ fn fma_arr<T: NumericNative>( | |||
c: &PrimitiveArray<T>, | |||
) -> PrimitiveArray<T> { | |||
assert_eq!(a.len(), b.len()); | |||
let validity = combine_validities_and( |
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 could trigger two allocations/passes.
CodSpeed Performance ReportMerging #15570 will not alter performanceComparing Summary
|
No description provided.