Skip to content

Commit 5c61cef

Browse files
committed
comment
1 parent 0d1d2d1 commit 5c61cef

File tree

1 file changed

+3
-0
lines changed
  • vortex-array/src/arrays/varbinview

1 file changed

+3
-0
lines changed

vortex-array/src/arrays/varbinview/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ impl BinaryView {
119119
///
120120
/// Depending on the length of the provided value either a new inlined
121121
/// or a reference view will be constructed.
122+
///
123+
/// Adapted from arrow-rs https://github.com/apache/arrow-rs/blob/f4fde769ab6e1a9b75f890b7f8b47bc22800830b/arrow-array/src/builder/generic_bytes_view_builder.rs#L524
124+
/// Explicitly enumerating inlined view produces code that avoids calling generic `ptr::copy_non_interleave` that's slower than explicit stores
122125
#[inline(never)]
123126
pub fn make_view(value: &[u8], block: u32, offset: u32) -> Self {
124127
match value.len() {

0 commit comments

Comments
 (0)