New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trimmed .zip? #4
Comments
@fengsi hey, Lambda archive is created here as you see, it just takes whatever is inside The only thing you need to put Is it what you are looking for? |
Hmm I don't know... Isn't |
see this article for details, the real limit is 250MB https://hackernoon.com/exploring-the-aws-lambda-deployment-limits-9a8384b0bec3 |
Thanks for the info! OK so the |
Right, it just runs |
OK I see, that explains. Thanks! Is there anyway that we can trim it down further? I tried |
FYI,
|
@fengsi check out a new repo - https://github.com/vladgolubev/aws-lambda-libreoffice It's 85 MB now, thanks to Brotli compression. It takes ~1.5 seconds on cold start, still need to test it more, but at a first glance works well |
Quick benchmark on local AWS Linux VM:
So the file is smaller, and also the decompression is faster. Not sure if it's best practice to pipe Thanks! Now if only we can trim the |
Are files in These won't save much space, but there are 1612 files and 136 folders in there (out of 2782/248 for the whole package, so more than half). So maybe that helps? |
@ncruces thanks for looking into it! That might help. Working with lots of small files takes a decent chunk of CPU time. I'll benchmark it next time I have a moment |
Also, consider using zstd instead of brotli. When turned up to 22 (literally: In my experience at least, cold starts for aws-lambda-libreoffice are more painful in GCP than the ~1.5s you've mentioned above. |
Another thought. LibreOffice creates a "user installation" directory on first run, which I think contributes to cold start overhead. Currently this is created in An alternative (which is what I'm doing) is to create a separate archive for this, unpack a fresh version of it for every run, and then do: |
First of all thanks for excellent info here. Do you happen to have the trimmed lambda up loadable version of office libre of 6.1.3? If not step by step instructions would be helpful. TIA |
The file downloaded from releases tab contains everything. Do you have a trimmed .zip that can be uploaded direct to Lambda?
Thanks!
The text was updated successfully, but these errors were encountered: