]> _ Git - alire.git/commit
Speed-up search of incomplete solutions (#1116)
authorAlejandro R Mosteo <amosteo@unizar.es>
Wed, 27 Jul 2022 14:03:53 +0000 (16:03 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Jul 2022 14:03:53 +0000 (16:03 +0200)
commit92ccefb143c2fce78de1cc377a8bcdfed64549d7
tree9dd6c4d3577cfd98312749b966d17fb43484903d
parentf3dd377b5c29a0a378ae5dfcb352a151271c807f
Speed-up search of incomplete solutions (#1116)

* Speed-up search of incomplete solutions

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.

* Fixes found by GHA

Co-authored-by: GHA <actions@github.com>
alire.toml
src/alire/alire-dependencies-containers.adb
src/alire/alire-dependencies-containers.ads
src/alire/alire-dependencies-states-maps.adb
src/alire/alire-dependencies-states-maps.ads
src/alire/alire-solver.adb