From 9e576dff7c39cfd510c60ba92aa0d1c15fd24a6b Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 19 Aug 2022 15:54:40 +0530 Subject: perf(runtime): optimize Deno.file open & stream (#15496) --- cli/bench/http/deno_flash_send_file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/bench/http') diff --git a/cli/bench/http/deno_flash_send_file.js b/cli/bench/http/deno_flash_send_file.js index 261f5a207..db2ad7a82 100644 --- a/cli/bench/http/deno_flash_send_file.js +++ b/cli/bench/http/deno_flash_send_file.js @@ -7,7 +7,7 @@ const { serve } = Deno; const path = new URL("../testdata/128k.bin", import.meta.url).pathname; function handler() { - const file = Deno.openSync(path, { read: true }); + const file = Deno.openSync(path); return new Response(file.readable); } -- cgit v1.2.3