superfly / fly.rs

Fly Edge Application runtime.
https://fly.io
MIT License
39 stars 7 forks source link

Load dev tools from binary, move embedded js to v8env.rs #54

Closed michaeldwan closed 5 years ago

michaeldwan commented 5 years ago

This includes the dev tools source in binaries and an option to install them when a runtime is created. There's also a new eval_with_dev_tools function on runtime that the main.rs files use to kick things off. We'll be using these binaries to test customer apps for prod.

michaeldwan commented 5 years ago

@jeromegn not sure yet. The dev tools are 9.9mb so certainly larger with them. I have a few ideas to make it smaller, like store the bytes compressed and either decompress on demand or cache on the disk. I'm also thinking about how we can exclude it from environments that don't need it like production.

michaeldwan commented 5 years ago

9.9MB -> 1.5MB compressed. We could embed compressed bytes and inflate at runtime.