mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
perf(ext/http): avoid spread arg deopt in op_http_wait (#18850)
2% improvement on macOS hello world.
This commit is contained in:
parent
9d7e3f84c8
commit
18170f2326
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue