diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-03-08 22:21:14 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 22:21:14 +0530 |
commit | 0cce9c2bcc9667935a571d30847e66ef5d01a196 (patch) | |
tree | 3e188f47a7c8350a3f48fe5ec3a0b256351d41b9 /runtime/examples | |
parent | 06a12341c66e0a44436e1178603e0f398bfae10c (diff) |
feat(core): prevent isolate drop for CLI main worker (#18059)
```
Benchmark 1: deno run -A ../empty.js
Time (mean ± σ): 20.5 ms ± 0.5 ms [User: 13.4 ms, System: 5.1 ms]
Range (min … max): 19.8 ms … 24.0 ms 119 runs
Benchmark 2: target/release/deno run -A ../empty.js
Time (mean ± σ): 18.8 ms ± 0.3 ms [User: 13.0 ms, System: 4.9 ms]
Range (min … max): 18.3 ms … 19.9 ms 129 runs
```
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/examples')
-rw-r--r-- | runtime/examples/hello_runtime.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs index fca7ff2c9..a47e9c908 100644 --- a/runtime/examples/hello_runtime.rs +++ b/runtime/examples/hello_runtime.rs @@ -66,6 +66,7 @@ async fn main() -> Result<(), AnyError> { shared_array_buffer_store: None, compiled_wasm_module_store: None, stdio: Default::default(), + leak_isolate: true, }; let js_path = |