From a142c5d8a469f609e847764be2a5373c683a7bd3 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Sat, 12 Oct 2024 16:07:01 +0200 Subject: [PATCH] paranoid android --- crates/store/re_dataframe/src/query.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/store/re_dataframe/src/query.rs b/crates/store/re_dataframe/src/query.rs index 529a16078694..0b1a897cebe7 100644 --- a/crates/store/re_dataframe/src/query.rs +++ b/crates/store/re_dataframe/src/query.rs @@ -755,7 +755,10 @@ impl QueryHandle<'_> { pub fn num_rows(&self) -> u64 { let num_rows = self.init().unique_index_values.len() as _; - if cfg!(debug_assertions) { + // NOTE: This is too slow to run in practice, even for debug builds. + // Do keep this around though, it does come in handy. + #[allow(clippy::overly_complex_bool_expr)] + if false && cfg!(debug_assertions) { let expected_num_rows = self.engine.query(self.query.clone()).into_iter().count() as u64; assert_eq!(expected_num_rows, num_rows);