mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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.
This commit is contained in:
parent
4773d07974
commit
da781280b8
6 changed files with 42 additions and 192 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue