Commit Graph

205 Commits

Author SHA1 Message Date
Doug Gregor
4ddd82cc89 As soon as a (partial) solution becomes worse than the best solution, stop.
This shaves about 10% off the number of solution states explored when
type-checking the standard library, although it doesn't improve
overall time by much. In a more targeted benchmark, 1 + 2.0 + 1, we
get a 21% speedup.


Swift SVN r11033
2013-12-09 18:13:37 +00:00
Doug Gregor
8cc1dc4535 Only consider relative scores when the fixed scores are identical.
Swift SVN r11030
2013-12-09 17:38:37 +00:00
Doug Gregor
79f8175e0b Solver: Keep track of a solution's score as we're computing it.
No functionality change here; just staging for some future optimizations.


Swift SVN r11028
2013-12-09 17:12:07 +00:00
Doug Gregor
951fd5620e Track the # of solutions computed and discarded.
Swift SVN r11018
2013-12-09 14:23:29 +00:00
Doug Gregor
691111eaf9 Split constraint system solution ranking into a separate source file.
Swift SVN r11016
2013-12-09 14:18:59 +00:00