From 18170f2326ec715f1df93592b71ccb1de5cd40a2 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 26 Apr 2023 15:37:57 +0530 Subject: perf(ext/http): avoid spread arg deopt in op_http_wait (#18850) 2% improvement on macOS hello world. --- ext/http/00_serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/http/00_serve.js') 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; -- cgit v1.2.3