From efb95c151e86d1029467d44dd3cb32730afc211e Mon Sep 17 00:00:00 2001 From: evan Date: Sat, 8 May 2021 14:49:04 -0400 Subject: [PATCH 1/3] improve adler32 perf (#56) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index dc5b7a8..dabc330 100644 --- a/src/index.ts +++ b/src/index.ts @@ -703,7 +703,7 @@ const adler = (): CRCV => { p(d) { // closures have awful performance let n = a, m = b; - const l = d.length; + const l = d.length | 0; for (let i = 0; i != l;) { const e = Math.min(i + 2655, l); for (; i < e; ++i) m += n += d[i]; From 52ec553502a45e95670f05c79b17af2acbf289b2 Mon Sep 17 00:00:00 2001 From: OddMorning Date: Tue, 11 May 2021 21:06:06 +0300 Subject: [PATCH 2/3] Fix a tiny typo (#60) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c2a946..8f1461e 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,7 @@ const zipped = fflate.zipSync({ // |-> other // | |-> tmp.txt // myImageData.bmp -// superTinyFile.bin +// superTinyFile.png // When decompressing, folders are not nested; all filepaths are fully // written out in the keys. For example, the return value may be: From fe022f9e3fdeeafb23679f04064f8db9ded5c4cf Mon Sep 17 00:00:00 2001 From: 101arrowz Date: Tue, 11 May 2021 11:08:00 -0700 Subject: [PATCH 3/3] Minor typo fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f1461e..46c214c 100644 --- a/README.md +++ b/README.md @@ -243,7 +243,7 @@ const zipped = fflate.zipSync({ 'dir1': { 'nested': { // You can use Unicode in filenames - '你好.txt': std('Hey there!') + '你好.txt': strToU8('Hey there!') }, // You can also manually write out a directory path 'other/tmp.txt': new Uint8Array([97, 98, 99, 100])