From d2a408f452db1157a1e6a14810bd1f03fc431d9d Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 6 Sep 2022 23:08:37 +0530 Subject: perf(runtime): short-circuit `queue_async_op` for Poll::Ready (#15773) --- runtime/js/40_testing.js | 1 + runtime/ops/web_worker.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/js/40_testing.js b/runtime/js/40_testing.js index e3a6ce324..c1ce3e726 100644 --- a/runtime/js/40_testing.js +++ b/runtime/js/40_testing.js @@ -147,6 +147,7 @@ // cleared can actually be removed from resource table, otherwise // false positives may occur (https://github.com/denoland/deno/issues/4591) await opSanitizerDelay(); + await opSanitizerDelay(); } if (shouldSkipSanitizers(desc)) return; diff --git a/runtime/ops/web_worker.rs b/runtime/ops/web_worker.rs index 184ebfddb..3c85d7b9e 100644 --- a/runtime/ops/web_worker.rs +++ b/runtime/ops/web_worker.rs @@ -39,7 +39,7 @@ fn op_worker_post_message( Ok(()) } -#[op] +#[op(deferred)] async fn op_worker_recv_message( state: Rc>, ) -> Result, AnyError> { -- cgit v1.2.3