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

Show when we're unpacking an archive into the Git cache #2

Open
wants to merge 5 commits into
base: devenv-2.21
Choose a base branch
from

Conversation

shyim
Copy link

@shyim shyim commented Aug 8, 2024

cherry pick of NixOS#11171

edolstra and others added 5 commits August 8, 2024 13:20
This happens in parallel with the download (which starts later), so
you only see this message when the download has finished but the
import hasn't.
We are piping curl downloads into `unpackTarfileToSink()`, but the
latter is typically slower than the former if you're on a fast
connection. So the download could appear unnecessarily slow. (There is
even a risk that if the Git import is *really* slow for whatever
reason, the TCP connection could time out.)

So let's make the download buffer bigger by default - 64 MiB is big
enough for the Nixpkgs tarball. Perhaps in the future, we could have
an unlimited buffer that spills data to disk beyond a certain
threshold, but that's probably overkill.
@shyim
Copy link
Author

shyim commented Aug 12, 2024

@domenkozar could we get this merged?

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

Successfully merging this pull request may close these issues.

2 participants