-
Notifications
You must be signed in to change notification settings - Fork 359
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
Opam install speed regression in 2.2 #5817
Comments
Oh ok, sorry I was confused by those debug logs
|
The
|
I'm unable to reproduce the regression with @Khady How did you test this locally? Were both code sections in the issue description executed on the same machine one after the other? If so, the slow down is expected the first time opam is ran as it reloads its cache (although it should have been done during |
If I remember correctly, the logs are showing exactly the commands I ran. I had one terminal with opam 2.2 and one with opam 2.1. Each has a different opam root. They have a switch each, which contains exactly the same packages at the same version except for some opam plugins. I was able to obtain the same numbers multiple times in a row for each version. will try to check again |
I tracked the issue down to this commit 9aa2290. I'm looking into it to see what could be done |
I think i understand why i wasn't able to reproduce on my own above: the 9aa2290 changed the behaviour of this corner case. I opened #5908 to fix this. |
Opam 2.1.2 and 2.2 appear to have pretty different speed on the lock and install commands.
vs
In 2.2
lock
is much faster butinstall
is much slower.From the debug output my understanding is that the solver is used in
install
with 2.2 but not with 2.1. Note that this is only the case with lock files,install
with 2.1 on the rawahrefs-all-deps
takes ~10s and triggers the solver.For
lock
the difference also seems to be calling the solver or not. But here the solver is not called in 2.2, so things got faster.The text was updated successfully, but these errors were encountered: