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

Copy Payload once! #11

Open
frenata opened this issue Mar 11, 2018 · 0 comments
Open

Copy Payload once! #11

frenata opened this issue Mar 11, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@frenata
Copy link
Owner

frenata commented Mar 11, 2018

https://github.com/frenata/compilebox/blob/0e81854da368f778a54f79c73d92714ea8431abb/docker_spawner.go#L138

The "Payload" never changes, yet we copy it over on each code evaluation. Why not copy it over once, on image build? It can live in some fixed location inside the image, while the dynamic stuff (user-code, input-file, completed, error-file) can live in a separate location that is mapped to the host's volume as usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant