Skip to content

Commit

Permalink
fix unrelatedly broken bench
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed May 27, 2024
1 parent c30a10b commit 7276a7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/re_data_store/benches/arrow2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

use std::sync::Arc;

use arrow2::array::{Array, FixedSizeListArray, PrimitiveArray, StructArray};
use arrow2::array::{Array, PrimitiveArray, StructArray};
use criterion::Criterion;
use itertools::Itertools;

Expand Down Expand Up @@ -274,8 +274,9 @@ fn estimated_size_bytes(c: &mut Criterion) {
ArrayKind::Primitive => {
bench_downcast_first::<PrimitiveArray<u64>>(&mut group, kind);
}
ArrayKind::Struct => bench_downcast_first::<FixedSizeListArray>(&mut group, kind),
ArrayKind::StructLarge => bench_downcast_first::<StructArray>(&mut group, kind),
ArrayKind::Struct | ArrayKind::StructLarge => {
bench_downcast_first::<StructArray>(&mut group, kind);
}
}

fn bench_downcast_first<T: arrow2::array::Array + Clone>(
Expand Down

0 comments on commit 7276a7c

Please sign in to comment.