From 0bbdbace02d8b17a02bd3c631b82f508d0effa4a Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 6 Jun 2023 03:01:28 -0600 Subject: refactor(core): ensureFastOps is an op-generating proxy (#19377) Startup benchmark shows no changes (within 1ms, identical system/user times). --- core/examples/http_bench_json_ops/http_bench_json_ops.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/examples') diff --git a/core/examples/http_bench_json_ops/http_bench_json_ops.js b/core/examples/http_bench_json_ops/http_bench_json_ops.js index 6cf2a8be2..a840e4e9f 100644 --- a/core/examples/http_bench_json_ops/http_bench_json_ops.js +++ b/core/examples/http_bench_json_ops/http_bench_json_ops.js @@ -9,10 +9,7 @@ const { op_listen } = Deno.core.ops; const { op_accept, op_read_socket, -} = Deno.core.generateAsyncOpHandler( - "op_accept", - "op_read_socket", -); +} = Deno.core.ensureFastOps(); const requestBuf = new Uint8Array(64 * 1024); const responseBuf = new Uint8Array( -- cgit v1.2.3