You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// With fflate, we can choose which files we want to compresszipObj[file.name]=[buf,{level: ALREADY_COMPRESSED.indexOf(ext)==-1 ? 6 : 0}];
Changing 6 to 1 or to any other number except 0 doesn't affect the execution time or file size.
You have to change it here:
if(!--left){fflate.zip(zipObj,{// If you want to control options for every file, you can do so here// They are merged with the per-file options (if they exist)// mem: 9level: 1},function(err,out){
I see in the code, that you do merge them like it says in the comment, but in the following line instead of using the merged result you pass the default options:
@anongit Check v0.4.1 on NPM and the updated browser demo, the issue should be resolved. Thanks for taking the time to diagnose the issue as well, I appreciate it a lot!
In the demo:
Changing
6
to1
or to any other number except0
doesn't affect the execution time or file size.You have to change it here:
I see in the code, that you do merge them like it says in the comment, but in the following line instead of using the merged result you pass the default options:
fflate/src/index.ts
Line 2149 in ffbb65c
The text was updated successfully, but these errors were encountered: