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. --- runtime/js/99_main.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'runtime/js/99_main.js') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index da5b5f1b8..ffb479c32 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -390,7 +390,6 @@ function bootstrapMainRuntime(runtimeOptions) { throw new Error("Worker runtime already bootstrapped"); } - core.initializeAsyncOps(); performance.setTimeOrigin(DateNow()); globalThis_ = globalThis; @@ -523,7 +522,6 @@ function bootstrapWorkerRuntime( throw new Error("Worker runtime already bootstrapped"); } - core.initializeAsyncOps(); performance.setTimeOrigin(DateNow()); globalThis_ = globalThis; -- cgit v1.2.3