-
Notifications
You must be signed in to change notification settings - Fork 24
split compress and decompress into separate packages #60
Comments
I think the challenge here is trying to determine if it is possible to accomplish the following:
Here is a quick breakdown of size:
With some quick math, we might end up with something like with all of the dependencies installed:
|
I removed the
|
@oohnoitz I'm using a stripped-down version of What accounts for the ~3.5MB you mentioned? |
It looks like our dependencies alone would account for ~2.4M, which is pretty much In regards to your stripped-down version, it only supports the specific AWS Lambda environment you've compiled it for. It wouldn't work across different versions of Node.js (until we switch to N-API, but that isn't supported by all active LTS versions). |
Understood. Well at least |
Best outcome would be that Brotli support lands in Node.js core (nodejs/node#18964). |
I'm using iltorb as part of a AWS Lambda provisioning script. Since deployment package size in serverless world is usually quite limited, Brotli is an ideal choice in terms of decompression speed and compression ratio to inflate static binaries and other large files.
iltorb seems to be the best Brotli module in NPM hands-down, but using directly without patching anything, also means the compression that is gained by Brotli is mostly lost due to the iltorb compression dependencies. Publishing a iltorb-decompress package would be super useful for my use case.
The text was updated successfully, but these errors were encountered: