summaryrefslogtreecommitdiffstats
path: root/src/app/data_farmer.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-04-12 00:03:27 -0400
committerGitHub <noreply@github.com>2023-04-12 00:03:27 -0400
commite61e5f2af6b5f533461e15bb04250e9ad94a6627 (patch)
tree8149cafafa161679ce8daa08b22d09da40245963 /src/app/data_farmer.rs
parent857b5bade0d71326d43036b4d9b1294caf03f265 (diff)
deps: Switch to using hashbrown for general hashmap usage (#1092)
* deps: replace fxhash with hashbrown + ahash * replace std hashmap with hashbrown + ahash * fmt * some more fmt
Diffstat (limited to 'src/app/data_farmer.rs')
-rw-r--r--src/app/data_farmer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/data_farmer.rs b/src/app/data_farmer.rs
index b36946dc..af130c3c 100644
--- a/src/app/data_farmer.rs
+++ b/src/app/data_farmer.rs
@@ -15,7 +15,7 @@
use std::{collections::BTreeMap, time::Instant, vec::Vec};
-use fxhash::FxHashMap;
+use hashbrown::HashMap;
#[cfg(feature = "battery")]
use crate::data_harvester::batteries;
@@ -48,7 +48,7 @@ pub struct ProcessData {
pub process_harvest: BTreeMap<Pid, ProcessHarvest>,
/// A mapping between a process PID to any children process PIDs.
- pub process_parent_mapping: FxHashMap<Pid, Vec<Pid>>,
+ pub process_parent_mapping: HashMap<Pid, Vec<Pid>>,
/// PIDs corresponding to processes that have no parents.
pub orphan_pids: Vec<Pid>,