Skip to content

Commit

Permalink
Change chunk size to 64KiB
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Jun 6, 2024
1 parent c8cf559 commit d3d4c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export async function calFileMd5(p: string | URL) {
const h = new MD5();
const f = await Deno.open(p);
try {
const buf = new Uint8Array(4096);
const buf = new Uint8Array(65536);
let readed: number | null = null;
do {
readed = await f.read(buf);
Expand All @@ -205,7 +205,7 @@ export async function calFileSha1(p: string | URL) {
const h = new SHA1();
const f = await Deno.open(p);
try {
const buf = new Uint8Array(4096);
const buf = new Uint8Array(65536);
let readed: number | null = null;
do {
readed = await f.read(buf);
Expand Down

0 comments on commit d3d4c6b

Please sign in to comment.