diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-01-17 13:54:33 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-01-17 14:18:02 +0200 |
commit | 12183024fd6bce3b06f1fab843dd8781dd35e036 (patch) | |
tree | a621ec7b65d37f011b15d22612df119404ee21be /.gitignore | |
parent | 60ee61162053054bb4abe7e0260734fd53532401 (diff) | |
download | apk-tools-12183024fd6bce3b06f1fab843dd8781dd35e036.tar.gz apk-tools-12183024fd6bce3b06f1fab843dd8781dd35e036.tar.bz2 apk-tools-12183024fd6bce3b06f1fab843dd8781dd35e036.tar.xz apk-tools-12183024fd6bce3b06f1fab843dd8781dd35e036.zip |
solver: calculate branch minimum penalty early
Previously we would cache the penalty when evaluating the final
solution, and adding that until we backtrack to first topology
position changing that penalty. However, we can just keep track
of minimum penalty based on name state, and add it. This allows
us to bail out early on bad branches because we know in advance
how things will turn out.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions