From 0f69f267d86eb87aae38e9f7639d813b491f9224 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 28 May 2020 19:56:13 +0200 Subject: [PATCH] Use ahash for hashing --- Cargo.toml | 1 + src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d3f107e..2a491ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ edition = "2018" license = "Apache-2.0" [dependencies] +ahash = "0.3.5" err-derive = "0.2.4" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 1bf63f5..1f53d8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ use std::{ - collections::HashMap, fs::File, io::{self, BufRead, BufReader}, num::ParseIntError, @@ -8,6 +7,7 @@ use std::{ str::FromStr, }; +use ahash::AHashMap as HashMap; use err_derive::Error; pub struct Segmenter {