From da781280b8422b4116473b366fb7d207909a31da Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 24 Feb 2023 01:20:15 +0530 Subject: 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. --- bench_util/js_runtime.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'bench_util') 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)); -- cgit v1.2.3