Skip to content

Commit

Permalink
Merge pull request #30905 from vespa-engine/havardpe/improve-strict-a…
Browse files Browse the repository at this point in the history
…nd-sort-when-allowed

improve strict and sorting when allowed
  • Loading branch information
geirst authored Apr 13, 2024
2 parents 5d5235e + d3be7d9 commit 36f9416
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ AndBlueprint::sort(Children &children, bool strict, bool sort_by_cost) const
{
if (sort_by_cost) {
AndFlow::sort(children, strict);
if (strict && opt_allow_force_strict()) {
AndFlow::reorder_for_extra_strictness(children, true, 3);
}
} else {
std::sort(children.begin(), children.end(), TieredLessEstimate());
}
Expand Down

0 comments on commit 36f9416

Please sign in to comment.