Skip to content

Speed-up search of incomplete solutions#1116

Merged
mosteo merged 2 commits into
alire-project:masterfrom
mosteo:fix/solver
Jul 27, 2022
Merged

Speed-up search of incomplete solutions#1116
mosteo merged 2 commits into
alire-project:masterfrom
mosteo:fix/solver

Conversation

@mosteo

@mosteo mosteo commented Jul 27, 2022

Copy link
Copy Markdown
Member

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