I have a few questions on zlib module, to be used with files under 40MB:
zlib.gzipSync() for fastest zipping (compression level does not matter)?Buffer?Asked because reference is not expressive.
Yeah, not much to go on in that documentation.
I recommend that you look at the zlib manual (the zlib.h source file) for information on the noted parameters and operations.
The fastest compression would be level 1.
The default compression level is 6. Other defaults can be found in zlib.h.
There does not appear to be an interface to deflateSetHeader(), which would be required to insert a file name in a gzip header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With