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

Speed up build command #289

Open
cswinter opened this issue Apr 18, 2021 · 0 comments
Open

Speed up build command #289

cswinter opened this issue Apr 18, 2021 · 0 comments

Comments

@cswinter
Copy link
Contributor

The imagebuild example is much slower than the docker cli. For a relatively small build (docker cli reports 25.15MB of build context) which is fully cached, the docker cli takes around 0.27 seconds and imagebuild.rs takes 0m1.352s. I haven't profiled it, but output takes much longer to appear for imagebuild.rs and my suspicion is that the tarball operation might be the cause:

let tar_result = tarball::dir(&mut bytes, opts.path.as_str());

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

No branches or pull requests

1 participant