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

Parallel pin source fetching #4399

Merged
merged 5 commits into from
Oct 27, 2020
Merged

Parallel pin source fetching #4399

merged 5 commits into from
Oct 27, 2020

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Oct 20, 2020

Fix #4315
Using the same example, it took 4m32 (with download-only option), and now with parallel and reuse of source dir, it takes only 1m32.
It also applies to pin scan arguments, and url pin.
cc/ @NathanReb

@rjbou rjbou added this to the 2.1.0~beta3 milestone Oct 20, 2020
@rjbou rjbou added this to PR in Progress in Opam 2.1.x via automation Oct 20, 2020
([],[]) fetched
in
if errored = []
|| OpamConsole.confirm "Could not retrieve%s\nContinue?"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to be more clear about the implications of saying "yes" here ?
Also, be careful that yes is the default and may be forced with --yes misled people.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe adding something like "You may reach an inconsistent state because of those not pinned packages"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Member

@AltGr AltGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems all good to me, just one confirm call that may not be clear enough to the user.

@rjbou rjbou moved this from PR in Progress to PR Finalised in Opam 2.1.x Oct 20, 2020
@rjbou rjbou merged commit 4141b47 into ocaml:master Oct 27, 2020
Opam 2.1.x automation moved this from PR Finalised to Done Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Opam 2.1.x
  
Done
Development

Successfully merging this pull request may close these issues.

pin-depends pinning speed
2 participants