Skip to content

Commit de36b35

Browse files
authored
Array operations fuzzer operates on smaller arrays (#7743)
I believe some of the reference implementations are very slow so we can't operate on bigger arrays Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent cb9b138 commit de36b35

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

fuzz/src/file/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use vortex_array::expr::Expression;
1111
use vortex_array::expr::arbitrary::filter_expr;
1212
use vortex_array::expr::arbitrary::projection_expr;
1313

14-
use crate::FUZZ_ARRAY_MAX_LEN;
14+
use crate::FUZZ_FILE_ARRAY_MAX_LEN;
1515
use crate::array::CompressorStrategy;
1616

1717
#[derive(Debug)]
@@ -28,7 +28,7 @@ impl<'a> Arbitrary<'a> for FuzzFileAction {
2828
u,
2929
&ArbitraryArrayConfig {
3030
dtype: None,
31-
len: 0..=FUZZ_ARRAY_MAX_LEN,
31+
len: 0..=FUZZ_FILE_ARRAY_MAX_LEN,
3232
},
3333
)?
3434
.0;

fuzz/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ pub use gpu::FuzzCompressGpu;
3232
#[cfg(feature = "cuda")]
3333
pub use gpu::run_compress_gpu;
3434

35-
pub const FUZZ_ARRAY_MAX_LEN: usize = 16_384;
35+
pub const FUZZ_ARRAY_MAX_LEN: usize = 2048;
36+
pub const FUZZ_FILE_ARRAY_MAX_LEN: usize = 16_384;
3637

3738
// Runtime initialization - platform-specific
3839
#[cfg(not(target_arch = "wasm32"))]

0 commit comments

Comments
 (0)