Dandandan commented on code in PR #6427:
URL: https://github.com/apache/arrow-rs/pull/6427#discussion_r1798301398


##########
arrow-array/src/array/byte_view_array.rs:
##########
@@ -114,7 +114,7 @@ use super::ByteArrayType;
 pub struct GenericByteViewArray<T: ByteViewType + ?Sized> {
     data_type: DataType,
     views: ScalarBuffer<u128>,
-    buffers: Vec<Buffer>,
+    buffers: Arc<[Buffer]>,

Review Comment:
   Cloning an `Arc` is relatively cheap (no allocation), cloning a `Vec` isn't.



-- 
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]

Reply via email to