Skip to content

Speed-up search of incomplete solutions #1116

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

Merged
merged 2 commits into from
Jul 27, 2022
Merged

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Jul 27, 2022

Better pruning of the search space by discarding some branches earlier.

We also had a bug that was duplicating the search space with every extra dependency. That meant an exponential increase in time for every extra dependency. Fortunately, this only affected incomplete solutions.

In practice there are no visible changes as the solutions found are ultimately the same. There are some tweaks to informative messages to give a bit more of context to the user and report times.

mosteo and others added 2 commits July 27, 2022 12:24
We now avoid earlier the solving of a dependency which has been already seen in
the search branch.

We also had a bug that was duplicating the search space with every extra
dependency. That meant an exponential increase in time for every extra
dependency. Fortunately, this only affected incomplete solutions.

In practice there are no visible changes as the solutions found are ultimately
the same.
@mosteo mosteo marked this pull request as ready for review July 27, 2022 12:01
@mosteo mosteo requested a review from Fabien-Chouteau July 27, 2022 12:01
@mosteo mosteo merged commit 92ccefb into alire-project:master Jul 27, 2022
@mosteo mosteo deleted the fix/solver branch July 27, 2022 14:03
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.

3 participants