fastr icon indicating copy to clipboard operation
fastr copied to clipboard

standalone image

Open afrozl opened this issue 5 years ago • 2 comments

I've experimented with the R native image and it appears to address the slow startup issues with fastR. The warm-up time is reduced by 50% and is low enough to justify using fastR for scripts that normally take longer than the overhead of the startup.

However, my goal is to deploy the R native image as a custom runtime for AWS lambda. Given the maximum size constraints inherent to lambda, I was wondering if there is a way to create a standalone binary for fastR?

I apologize if this isn't the appropriate forum to ask these types of questions.

afrozl avatar Feb 17 '20 19:02 afrozl

Hello,

thank you for reaching to us. If I understand it correctly, you are looking for something like TruffleRuby standalone distribution? Note that the size of compressed TruffleRuby standalone is around ~140MB -- would that be small enough?

steve-s avatar Feb 17 '20 20:02 steve-s

Yes, that could work, The AWS limit on runtime binary + associated code is 250MB (uncompressed)

afrozl avatar Feb 17 '20 21:02 afrozl