From 3e753c2a0b698a605144370aa0fee855e3081795 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Fri, 24 Sep 2021 22:08:28 +1000 Subject: [PATCH] replace cached dep with custom hashmap thing i benchmarked it with hyperfine and in terms of performance it's pretty much identical, with a slight (fraction of a percent) advantage to my implementation --- Cargo.lock | 19 +------------------ Cargo.toml | 4 ---- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a469ff3..81ead3a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -37,16 +37,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "cached" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b99e696f7b2696ed5eae0d462a9eeafaea111d99e39b2c8ceb418afe1013bcfc" -dependencies = [ - "hashbrown 0.9.1", - "once_cell", -] - [[package]] name = "cfb" version = "0.4.0" @@ -188,7 +178,6 @@ name = "fif" version = "0.3.6" dependencies = [ "bitflags", - "cached", "cfg-if", "clap", "clap_derive", @@ -228,12 +217,6 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" -[[package]] -name = "hashbrown" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" - [[package]] name = "hashbrown" version = "0.11.2" @@ -265,7 +248,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" dependencies = [ "autocfg", - "hashbrown 0.11.2", + "hashbrown", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index d34b371..856d4a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,10 +75,6 @@ version = "0.9.0" default-features = false features = ["termcolor", "atty"] -[dependencies.cached] -version = "0.25.0" -default-features = false - [dev-dependencies] tempfile = "3.2.0" rand = "0.8.3"