Skip to content

Commit

Permalink
perf(ext/http): avoid spread arg deopt in op_http_wait (#18850)
Browse files Browse the repository at this point in the history
2% improvement on macOS hello world.
  • Loading branch information
littledivy authored Apr 26, 2023
1 parent 9d7e3f8 commit 18170f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/http/00_serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 18170f2

Please sign in to comment.