diff options
author | Mathias Lafeldt <mathias.lafeldt@gmail.com> | 2022-11-10 12:46:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 12:46:26 +0100 |
commit | 92764c0decb370b0f8a78770314ceda7228d315f (patch) | |
tree | f04ff23a216540f59364a698ba1a600d1b87b7dc /cli | |
parent | 7bd2c607dd5aba82f4afb94a5c2e35ba5f0738cf (diff) |
feat(runtime): support creating workers with custom v8 snapshots (#16553)
This PR makes it possible for applications to create workers from custom
snapshots to improve runtime performance (without having to fork/copy
`runtime/workers.rs`).
Diffstat (limited to 'cli')
-rw-r--r-- | cli/standalone.rs | 1 | ||||
-rw-r--r-- | cli/worker.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs index 2cf3b952c..5e66bcb18 100644 --- a/cli/standalone.rs +++ b/cli/standalone.rs @@ -287,6 +287,7 @@ pub async fn run( inspect: ps.options.is_inspecting(), }, extensions: ops::cli_exts(ps.clone()), + startup_snapshot: None, unsafely_ignore_certificate_errors: metadata .unsafely_ignore_certificate_errors, root_cert_store: Some(root_cert_store), diff --git a/cli/worker.rs b/cli/worker.rs index 1aa2abdd9..63d1b7912 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -430,6 +430,7 @@ pub async fn create_main_worker( inspect: ps.options.is_inspecting(), }, extensions, + startup_snapshot: None, unsafely_ignore_certificate_errors: ps .options .unsafely_ignore_certificate_errors() |