alamb commented on code in PR #10783:
URL: https://github.com/apache/arrow-rs/pull/10783#discussion_r3847343047
##########
arrow-array/src/array/primitive_array.rs:
##########
@@ -995,9 +995,8 @@ impl<T: ArrowPrimitiveType> PrimitiveArray<T> {
let len = self.len();
let nulls = self.nulls().cloned();
- let mut buffer = BufferBuilder::<O::Native>::new(len);
- buffer.append_n_zeroed(len);
- let slice = buffer.as_slice_mut();
+ let mut values = vec![O::Native::default(); len];
Review Comment:
🚀
love it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]