Skip to content
Open
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
4 changes: 3 additions & 1 deletion libdd-profiling/src/internal/observation/observations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use crate::internal::Timestamp;
use std::collections::HashMap;
use std::io;

type Hasher = core::hash::BuildHasherDefault<rustc_hash::FxHasher>;

struct NonEmptyObservations {
// Samples with no timestamps are aggregated in-place as each observation is added
aggregated_data: AggregatedObservations,
Expand Down Expand Up @@ -131,7 +133,7 @@ impl Observations {
#[derive(Default)]
struct AggregatedObservations {
obs_len: ObservationLength,
data: HashMap<Sample, TrimmedObservation>,
data: HashMap<Sample, TrimmedObservation, Hasher>,
}

impl AggregatedObservations {
Expand Down
Loading