From d898a4e6b4e27e49b78870b9bafd066e4a480ba6 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Fri, 22 Nov 2024 16:21:22 +0100 Subject: [PATCH] i be messin up --- crates/store/re_chunk/src/chunk.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/store/re_chunk/src/chunk.rs b/crates/store/re_chunk/src/chunk.rs index 6edf4c8c4a0f..989df909f3ba 100644 --- a/crates/store/re_chunk/src/chunk.rs +++ b/crates/store/re_chunk/src/chunk.rs @@ -1,4 +1,7 @@ -use std::sync::atomic::{AtomicU64, Ordering}; +use std::{ + collections::BTreeMap, + sync::atomic::{AtomicU64, Ordering}, +}; use arrow2::{ array::{ @@ -8,7 +11,6 @@ use arrow2::{ Either, }; -use ahash::HashMap; use itertools::{izip, Itertools}; use nohash_hasher::IntMap; @@ -462,7 +464,7 @@ impl Chunk { ) ) }) - .fold(HashMap::default(), |mut acc, (time, is_valid)| { + .fold(BTreeMap::default(), |mut acc, (time, is_valid)| { *acc.entry(time).or_default() += is_valid; acc })