Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vortex-turboquant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ workspace = true
half = { workspace = true }
num-traits = { workspace = true }
prost = { workspace = true }
tracing = { workspace = true }
vortex-array = { workspace = true }
vortex-buffer = { workspace = true }
vortex-error = { workspace = true }
Expand All @@ -32,6 +33,7 @@ vortex-utils = { workspace = true, features = ["dashmap"] }
divan = { workspace = true }
rand = { workspace = true }
rstest = { workspace = true }
tracing-test = "0.2"
vortex-file = { workspace = true }
vortex-io = { workspace = true }
vortex-layout = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions vortex-turboquant/benches/encode_decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
//! Benchmarks for `turboquant_encode` and `turboquant_decode` across different validity-mask
//! shapes.
//!
//! The four mask shapes (`AllTrue`, `AllFalse`, dense `Values`, sparse `Values`) exercise the
//! variant-specialized paths added in the mask refactor in `vector/normalize.rs`,
//! `vector/quantize.rs`, and `scalar_fns/decode.rs`.
//! The four mask shapes (`AllTrue`, `AllFalse`, dense `Values`, sparse `Values`) exercise both
//! the encoder's per-row mask dispatch in `vector/quantize.rs` and the variant-specialized mask
//! arms in `scalar_fns/decode.rs`.

#![expect(clippy::unwrap_used)]

Expand Down Expand Up @@ -118,7 +118,7 @@ fn decode(encoded: ArrayRef, ctx: &mut ExecutionCtx) -> ArrayRef {

fn config() -> TurboQuantConfig {
// 4 bits, 4 SORF rounds, fixed seed: representative defaults from the test fixtures.
TurboQuantConfig::try_new(4, 0xDEADBEEF, 4).unwrap()
TurboQuantConfig::try_new(4, 0xDEADBEEF, 4, None).unwrap()
}

#[divan::bench(args = MASK_SHAPES)]
Expand Down
Loading
Loading