Skip to content

Commit

Permalink
Use get_array_memory_size
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 19, 2024
1 parent 052ef89 commit 8b59d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/store/re_types_core/src/size_bytes/arrow_sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use super::SizeBytes;
impl SizeBytes for dyn Array {
#[inline]
fn heap_size_bytes(&self) -> u64 {
Box::<dyn arrow2::array::Array>::from(self).heap_size_bytes()
self.get_array_memory_size() as u64
}
}

impl SizeBytes for ArrayRef {
#[inline]
fn heap_size_bytes(&self) -> u64 {
Box::<dyn arrow2::array::Array>::from(self.as_ref()).heap_size_bytes()
self.get_array_memory_size() as u64
}
}

0 comments on commit 8b59d3a

Please sign in to comment.