From 7248e334b78d6edb627cd64d474e488278356c0f Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 9 Jul 2024 00:18:59 -0700 Subject: [PATCH] Update to latest rustc-hash version This is a very minor performance win, a few percent in my benchmarking. typing_1.ml went from 3.013M to 2.996M instructions (0.6% reduction). slow_1.rs went from 2.153M to 2.046M instructions (5% reduction). Fixes #728 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index acb1101461..53a802305b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -776,9 +776,9 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "rustc-hash" -version = "1.1.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" [[package]] name = "rustix" diff --git a/Cargo.toml b/Cargo.toml index 3842966527..0f4b54ecee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ regex = "1.10.4" clap = { version = "3.2.25", features = ["cargo", "env", "wrap_help"] } itertools = "0.11.0" typed-arena = "2.0.2" -rustc-hash = "1.1.0" +rustc-hash = "2.0.0" strsim = "0.10.0" lazy_static = "1.4.0" # tree-sitter 0.22.5 uses std::os::fd::AsRawFd, which was added in Rust 1.66.