Replies: 1 comment 1 reply
-
|
I think the problem is that When I replace the fetch(bigfile)
.then((d) => d.arrayBuffer())
.then((d) => {
mutable fflatetimer = performance.now();
d = new Uint8Array(d);
return new Promise((resolve, reject) => {
// unzipSync, not unzip
const unzipped = fflate.unzipSync(d);
mutable fflatetimer = performance.now() - mutable fflatetimer;
resolve(unzipped);
});
})It performs 10-20x faster than JSZip. Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In this notebook https://observablehq.com/d/b946227d5da6e6fc I try and compare the decoding speed for zip files between jszip and fflate.
The file I want to decompress is a bunch of jpeg, zipped with MacOS Finder's native "archive" menu.
I'm not sure I'm using fflate correctly, since it seems to be 5 to 10 times slower than jszip.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions