Skip to content

Commit

Permalink
Buffer alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Dec 18, 2024
1 parent 33b911c commit 602f509
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions encodings/fastlanes/src/bitpacking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use vortex_buffer::Buffer;
use vortex_dtype::{DType, NativePType, PType};
use vortex_error::{vortex_bail, vortex_err, VortexExpect as _, VortexResult};

use crate::FASTLANES_ALIGNMENT;

mod compress;
mod compute;

Expand Down Expand Up @@ -90,7 +88,11 @@ impl BitPackedArray {
packed.len()
));
}
let packed = ArrayBuffer::new_with_alignment(packed, FASTLANES_ALIGNMENT);

// TODO(ngates): enforce 128 byte alignment once we have a ScalarBufferBuilder that can
// enforce custom alignments.
// let packed = ArrayBuffer::new_with_alignment(packed, FASTLANES_ALIGNMENT);
let packed = ArrayBuffer::new_with_alignment(packed, ptype.byte_width());

let metadata = BitPackedMetadata {
validity: validity.to_metadata(length)?,
Expand Down

0 comments on commit 602f509

Please sign in to comment.