Switch to `rustc_hash` instead of `ahash`
This commit is contained in:
parent
3b3627422b
commit
647adb1694
|
@ -13,10 +13,10 @@ readme = "../README.md"
|
|||
[features]
|
||||
__test_data = ["test-cases"]
|
||||
test-cases = []
|
||||
with-serde = ["serde", "ahash/serde", "smartstring/serde"]
|
||||
with-serde = ["serde", "smartstring/serde"]
|
||||
|
||||
[dependencies]
|
||||
ahash = "0.8"
|
||||
rustc-hash = "1.1.0"
|
||||
smartstring = "1"
|
||||
serde = { version = "1.0.123", features = ["derive"], optional = true }
|
||||
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
//! data files from publicly available sources. See the README in `/data`.
|
||||
|
||||
use std::cmp::Reverse;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
use std::io::{BufRead, BufReader, BufWriter};
|
||||
use std::str::FromStr;
|
||||
|
||||
use ahash::{AHashMap as HashMap, AHashSet as HashSet};
|
||||
use rayon::iter::{IntoParallelIterator, ParallelIterator};
|
||||
use smartstring::alias::String as SmartString;
|
||||
|
||||
|
|
|
@ -256,7 +256,7 @@ impl std::fmt::Display for InvalidCharacter {
|
|||
}
|
||||
}
|
||||
|
||||
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
|
||||
type HashMap<K, V> = rustc_hash::FxHashMap<K, V>;
|
||||
|
||||
const DEFAULT_LIMIT: usize = 24;
|
||||
|
||||
|
|
Loading…
Reference in New Issue