Skip to main content

ALIGNMENT

Constant ALIGNMENT 

Source
const ALIGNMENT: usize = 64;
Expand description

Buffer alignment for published blocks.

The correctness floor is align_of::<T>() — 16 bytes for the widest thing we store. 64 is the cache-line / SIMD figure and costs a few padding bytes per buffer. Blocks are written at 64 and read with require_alignment(true) so that a regression in the write path fails loudly instead of making arrow-rs quietly memcpy the entire body out of the mapping.