summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-04-26 15:37:57 +0530
committerGitHub <noreply@github.com>2023-04-26 15:37:57 +0530
commit18170f2326ec715f1df93592b71ccb1de5cd40a2 (patch)
treea977b29ccb79ef95c2c89356ba4bca3e3084b261
parent9d7e3f84c852a538937399e542fe4fecb9d52f08 (diff)
perf(ext/http): avoid spread arg deopt in op_http_wait (#18850)
2% improvement on macOS hello world.
-rw-r--r--ext/http/00_serve.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js
index 3022bc5fa..6e8f846df 100644
--- a/ext/http/00_serve.js
+++ b/ext/http/00_serve.js
@@ -515,7 +515,7 @@ async function serve(arg1, arg2) {
const rid = context.serverRid;
let req;
try {
- req = await core.opAsync("op_http_wait", rid);
+ req = await core.opAsync2("op_http_wait", rid);
} catch (error) {
if (ObjectPrototypeIsPrototypeOf(BadResourcePrototype, error)) {
break;