Skip to main content

vortex_fastlanes/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4#![allow(clippy::cast_possible_truncation)]
5
6pub use bitpacking::*;
7pub use delta::*;
8pub use r#for::*;
9pub use rle::*;
10
11mod bitpacking;
12mod delta;
13mod r#for;
14mod rle;
15
16pub(crate) const FL_CHUNK_SIZE: usize = 1024;
17
18#[cfg(test)]
19mod test {
20    use std::sync::LazyLock;
21
22    use vortex_array::session::ArraySessionExt;
23    use vortex_session::VortexSession;
24
25    use super::*;
26
27    pub static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
28        let session = VortexSession::empty();
29        session
30            .arrays()
31            .register(BitPackedVTable::ID, BitPackedVTable);
32        session.arrays().register(DeltaVTable::ID, DeltaVTable);
33        session.arrays().register(FoRVTable::ID, FoRVTable);
34        session.arrays().register(RLEVTable::ID, RLEVTable);
35        session
36    });
37}