bakdata / aws-lambda-r-runtime

Serverless execution of R code on AWS Lambda
https://medium.com/bakdata/running-r-on-aws-lambda-9d40643551a6
MIT License
143 stars 52 forks source link

Remove unecessary files/folders from libraries #60

Open mojimi opened 3 years ago

mojimi commented 3 years ago

I'm not an expert in R, but this repository was very useful for building a R lambda for a client, problem is, its really easy to reach lambda's limitation, some R libraries are huge in size.

But I noticed you can shave several megabytes off by removing some folders like docs, help, html, examples, tests, translations.

Would be cool to add this removal logic to the bash files, both for creating layers with libraries and for the bootstrap layer

philipp94831 commented 3 years ago

Hi @mojimi , thanks for the suggestion. Currently we have no capacities to implement this but feel free to submit a PR :-)