From 629d09b149ab42cc4c3cebc41e0f23112ace891c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 10 Jul 2023 13:42:47 -0400 Subject: perf: add setup cache for node_modules folder (#19787) Part of #19774. This makes it twice as fast on my machine. Stores a file at `node_modules/.deno/setup-cache.bin`, which contains information about how the node_modules folder is currently setup. Obviously there is a risk that this information will get out of date with the current folder structure. --- Cargo.lock | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index d05bf423a..0cf8d56b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -372,6 +372,15 @@ dependencies = [ "scoped-tls", ] +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + [[package]] name = "bit-set" version = "0.5.3" @@ -779,6 +788,7 @@ dependencies = [ "atty", "base32", "base64 0.13.1", + "bincode", "cache_control", "chrono", "clap", -- cgit v1.2.3