Skip to content
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

Pre-building common libraries in the container #24

Open
milancurcic opened this issue Sep 3, 2022 · 2 comments
Open

Pre-building common libraries in the container #24

milancurcic opened this issue Sep 3, 2022 · 2 comments
Labels
question Further information is requested

Comments

@milancurcic
Copy link
Member

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?

@milancurcic milancurcic added the question Further information is requested label Sep 3, 2022
@ashirrwad
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants