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 /runtime/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 'runtime/build.rs')
-rw-r--r-- | runtime/build.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/build.rs b/runtime/build.rs index 166421586..6da7ec419 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -294,14 +294,7 @@ mod startup_snapshot { startup_snapshot: None, extensions: vec![], 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: Some(Box::new(transpile_ts_for_snapshotting)), }); } |