alamb commented on code in PR #7513:
URL: https://github.com/apache/arrow-rs/pull/7513#discussion_r2123810423
##########
arrow-array/src/array/byte_view_array.rs:
##########
@@ -538,6 +538,18 @@ impl<T: ByteViewType + ?Sized> GenericByteViewArray<T> {
l_full_data.cmp(r_full_data)
}
+
+ /// return the total number of bytes required to hold all strings pointed
to by views in this array
+ pub fn minimum_buffer_size(&self) -> usize {
Review Comment:
Yeah, I used sum before and it showed up in a profile -- I was trying to see
if I could get the code faster but I didn't do it scientifically
--
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]