diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-08-19 15:54:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 15:54:40 +0530 |
commit | 9e576dff7c39cfd510c60ba92aa0d1c15fd24a6b (patch) | |
tree | 963c9805db09bf1a93c0548956f858918250821e /cli/bench/http/deno_flash_send_file.js | |
parent | 8bdcec1c84636aa00bf7444539e68b49d79b1fbf (diff) |
perf(runtime): optimize Deno.file open & stream (#15496)
Diffstat (limited to 'cli/bench/http/deno_flash_send_file.js')
-rw-r--r-- | cli/bench/http/deno_flash_send_file.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |