Use ahash for hashing
This commit is contained in:
parent
c11b30526d
commit
0f69f267d8
|
@ -6,6 +6,7 @@ edition = "2018"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
ahash = "0.3.5"
|
||||||
err-derive = "0.2.4"
|
err-derive = "0.2.4"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
|
||||||
fs::File,
|
fs::File,
|
||||||
io::{self, BufRead, BufReader},
|
io::{self, BufRead, BufReader},
|
||||||
num::ParseIntError,
|
num::ParseIntError,
|
||||||
|
@ -8,6 +7,7 @@ use std::{
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use ahash::AHashMap as HashMap;
|
||||||
use err_derive::Error;
|
use err_derive::Error;
|
||||||
|
|
||||||
pub struct Segmenter {
|
pub struct Segmenter {
|
||||||
|
|
Loading…
Reference in New Issue