Skip to content

Commit 89a510a

Browse files
authored
Arc viewed buffers (#1970)
We clone these everytime we access a child
1 parent 4cc2c0d commit 89a510a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vortex-array/src/data/viewed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub(super) struct ViewedArrayData {
1919
pub(super) metadata: Arc<dyn ArrayMetadata>,
2020
pub(super) flatbuffer: FlatBuffer,
2121
pub(super) flatbuffer_loc: usize,
22-
pub(super) buffers: Box<[ByteBuffer]>,
22+
pub(super) buffers: Arc<[ByteBuffer]>,
2323
pub(super) ctx: ContextRef,
2424
#[cfg(feature = "canonical_counter")]
2525
pub(super) canonical_counter: std::sync::atomic::AtomicUsize,

0 commit comments

Comments
 (0)