fortran-lang / playground

An interactive Fortran playground
MIT License
34 stars 12 forks source link

Pre-building common libraries in the container #24

Open milancurcic opened 2 years ago

milancurcic commented 2 years ago

When first building stdlib, it takes a while for the playground to respond because it takes a while to build stdlib. Building and running programs that use stdlib subsequently is faster because the stdlib is reused, at least for this running session of the backend server.

I wonder if it would be a good idea and easy to implement to pre-build any built-in libraries (for now just stdlib) at docker build stage, rather than at server run time?

ashirrwad commented 2 years ago

That's what I used in the first iteration but as @everythingfunctional stated it would mean that all the libraries are built which won't be useful if the user only imports some selected libraries.

everythingfunctional commented 2 years ago

If I recall, the initial implementation wasn't pre-building them, but maybe I'm mistaken. This might be worth considering.