0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

perf(ext/http): avoid spread arg deopt in op_http_wait (#18850)

2% improvement on macOS hello world.
This commit is contained in:
Divy Srivastava 2023-04-26 15:37:57 +05:30 committed by GitHub
parent 9d7e3f84c8
commit 18170f2326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;