Skip to content

Commit

Permalink
use rustc-hash to replace fxhash
Browse files Browse the repository at this point in the history
  • Loading branch information
Lips7 committed Jul 22, 2024
1 parent 7f2f9cd commit 9218ea1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
23 changes: 7 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion matcher_rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ aho-corasick-unsafe = { version = "0.0.4", git = "https://github.com/Lips7/aho-c
bitflags = "2.6.0"
daachorse = "1.0.0"
fancy-regex = "0.13.0"
fxhash = "0.2.1"
id-set = "0.2.2"
lazy_static = "1.5.0"
nohash-hasher = "0.2.0"
parking_lot = { version = "0.12.3", features = ["hardware-lock-elision"]}
rapidfuzz = "0.5.0"
regex = { version = "1.10.5", features = ["perf-dfa-full"] }
rustc-hash = "2.0.0"
serde = { version = "1.0.204", features = ["derive"] }
tinyvec = { version = "1.8.0", features = ["serde"] }

Expand Down
4 changes: 2 additions & 2 deletions matcher_rs/src/process/process_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ use daachorse::{
CharwiseDoubleArrayAhoCorasick, CharwiseDoubleArrayAhoCorasickBuilder,
MatchKind as DoubleArrayAhoCorasickMatchKind,
};
#[cfg(any(feature = "runtime_build", feature = "dfa"))]
use fxhash::FxHashMap;
use id_set::IdSet;
use lazy_static::lazy_static;
use nohash_hasher::{IntMap, IsEnabled};
use parking_lot::RwLock;
#[cfg(any(feature = "runtime_build", feature = "dfa"))]
use rustc_hash::FxHashMap;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use tinyvec::ArrayVec;

Expand Down
2 changes: 1 addition & 1 deletion matcher_rs/src/simple_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::iter;
use std::{borrow::Cow, collections::HashMap};

use aho_corasick_unsafe::{AhoCorasick, AhoCorasickBuilder, AhoCorasickKind};
use fxhash::FxHashMap;
use id_set::IdSet;
use nohash_hasher::IntMap;
use rustc_hash::FxHashMap;
use serde::{Deserialize, Serialize};

use crate::matcher::{MatchResultTrait, TextMatcherTrait};
Expand Down

0 comments on commit 9218ea1

Please sign in to comment.