Commit 90981f4
Andres Madrid Ucha
PartialExecuter: Avoid copying subsets in SplitIntoSCCS
Instead of constructing a subset and then copying it into subsets,
we can construct it locally and std::move it into subsets. This is
safe because the subset has no usage outside this scope, and all
the places where we were using it now refer to the moved-subset (subsets.back())1 parent ec3f763 commit 90981f4
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
1671 | | - | |
1672 | 1671 | | |
1673 | 1672 | | |
1674 | 1673 | | |
| |||
1685 | 1684 | | |
1686 | 1685 | | |
1687 | 1686 | | |
1688 | | - | |
| 1687 | + | |
1689 | 1688 | | |
1690 | | - | |
1691 | | - | |
| 1689 | + | |
| 1690 | + | |
1692 | 1691 | | |
1693 | 1692 | | |
1694 | 1693 | | |
| |||
0 commit comments