Skip to content

Commit

Permalink
Remove hashbrown dependency now that hashmaps/sets are not in the h…
Browse files Browse the repository at this point in the history
…ot loop anymore

Signed-off-by: Enrico Ghiorzi <[email protected]>
  • Loading branch information
EnricoGhiorzi committed Dec 6, 2024
1 parent cd6332b commit ec510ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion scan_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ log = { workspace = true }
rand = { version = "0.8.*", features = ["small_rng"] }
rayon = "1.10.0"
ordered-float = "4.2.2"
hashbrown = "0.15.0"
smallvec = "1.13.2"

[dev-dependencies]
Expand Down
4 changes: 1 addition & 3 deletions scan_core/src/channel_system/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ use super::{
use crate::channel_system::ChannelSystemDef;
use crate::grammar::Type;
use crate::Expression;
// use ahash::AHashMap as HashMap;
use hashbrown::HashMap;
use log::info;
use std::collections::VecDeque;
use std::collections::{HashMap, VecDeque};
use std::sync::Arc;

/// An expression using CS's [`Var`] as variables.
Expand Down
2 changes: 1 addition & 1 deletion scan_core/src/pmtl.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
mod numset;

use crate::{Atom, Time};
use hashbrown::HashSet;
use numset::NumSet;
use std::collections::HashSet;
use std::{hash::Hash, sync::Arc};

type DenseTime = (Time, Time);
Expand Down
3 changes: 1 addition & 2 deletions scan_core/src/program_graph/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ use crate::{
program_graph::ProgramGraphDef,
Integer,
};
// use ahash::{AHashMap as HashMap, AHashSet as HashSet};
use hashbrown::HashMap;
use log::info;
use std::collections::HashMap;
use std::sync::Arc;

#[derive(Debug, Clone)]
Expand Down

0 comments on commit ec510ea

Please sign in to comment.