Commit 28844c5
authored
perf: optimize the
* There's no need to populate a Dictionary just to diff the the "old" and "cur" Lists of Changes.
* If the two lists are of equal length and no change has occurred, we can assume that they are also reported in equal sort-order (by git-status).
* Thus, we only need to compare the two items at each successive index.WorkingCopy.IsChanged() method (#1418)1 parent f88652f commit 28844c5
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1778 | 1778 | | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
| 1781 | + | |
1786 | 1782 | | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
1791 | 1786 | | |
1792 | 1787 | | |
1793 | 1788 | | |
| |||
0 commit comments