diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-07 08:57:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 13:57:58 +0100 |
commit | d12b039e1ad601622c6135e13f00fd14cb09bce1 (patch) | |
tree | 5dfc53c252004e62711fac8cd598c55fbb146eab /cli/build.rs | |
parent | fe368b72c1dd2f2d17b7b7e5965b9e3d9ca61c35 (diff) |
perf: disable snapshot compression (#18061)
This commit disables snapshot compression for the CLI snapshot.]
Decompressing the snapshot on startup takes ~2.5ms.
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cli/build.rs b/cli/build.rs index 9d133d99a..c0a22ba12 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -380,14 +380,7 @@ fn create_cli_snapshot(snapshot_path: PathBuf) { startup_snapshot: Some(deno_runtime::js::deno_isolate_init()), extensions, extensions_with_js, - compression_cb: Some(Box::new(|vec, snapshot_slice| { - lzzzz::lz4_hc::compress_to_vec( - snapshot_slice, - vec, - lzzzz::lz4_hc::CLEVEL_MAX, - ) - .expect("snapshot compression failed"); - })), + compression_cb: None, snapshot_module_load_cb: None, }) } |