diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-24 01:20:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 19:50:15 +0000 |
commit | da781280b8422b4116473b366fb7d207909a31da (patch) | |
tree | bef59ac9dd8e26d97d7d494de87d53ab537724cc /bench_util | |
parent | 4773d07974167b565ba84d5603a6d6f70cd12660 (diff) |
fix(core): remove async op inlining optimization (#17899)
Runtime generation of async op wrappers contributed to increased startup
time and core became unusable with
`--disallow-code-generation-from-strings` flag. The optimization only
affects very small microbenchmarks so this revert will not cause any
regressions.
Diffstat (limited to 'bench_util')
-rw-r--r-- | bench_util/js_runtime.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bench_util/js_runtime.rs b/bench_util/js_runtime.rs index 376d30593..e45af2bdd 100644 --- a/bench_util/js_runtime.rs +++ b/bench_util/js_runtime.rs @@ -104,9 +104,6 @@ pub fn bench_js_async_with( }; let looped = loop_code(inner_iters, src); let src = looped.as_ref(); - runtime - .execute_script("init", "Deno.core.initializeAsyncOps();") - .unwrap(); if is_profiling() { for _ in 0..opts.profiling_outer { tokio_runtime.block_on(inner_async(src, &mut runtime)); |