-
Notifications
You must be signed in to change notification settings - Fork 365
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
[question] Howto debug/fix slow constraint solving #4495
Comments
Thanks for reporting. Indeed, with the growth of the repository, the solver sometimes struggles... Here are a few things you can try:
As for your question proper ("how to debug/fix"), this is quite hard since solvers are black boxes. They tend, however, to struggle with disjunctions (many versions of a package available and compatible, with lots of choices of dependencies), so multiple levels of dependencies with many possibilities should be avoided. If you want to dig deeper, you can fine-tune the preprocessing with (see
Note that this is still being worked on, and we have a few other ideas for improving further :) |
The very great news is that 2.1~beta4 takes 10 seconds to answer, rather than minutes. |
Additional note: the Z3 backend, in the newer versions, has the added benefit that even if it times out, it will still provide a correct solution. Although not proved optimal, in practice these solution are pretty good already, and the difference does not matter in general. |
Looks like this was solved with 2.1.0 - please feel free to re-open as necessary! |
This takes minutes to propose a solution.
It works fine with a 4.07 or 4.09 switch, see also: coq/opam#1572
How can we debug the issue?
It's not a big deal this time, since it seems tied to an old OCaml compiler we may drop soonish, but for the future, I'd like to understand the issue.
The text was updated successfully, but these errors were encountered: