Commit 4629682
Eric Wheeler
perf: optimize updateTaskHistory for 2800x performance improvement
Remove unnecessary loading and returning of entire task history array.
The return value was never used by any caller, so we can make this an O(1)
operation instead of O(n) by simply saving the single item.
This change significantly improves performance when updating task history,
which happens frequently during task execution.
Signed-off-by: Eric Wheeler <[email protected]>1 parent e221174 commit 4629682
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
1720 | | - | |
| 1720 | + | |
1721 | 1721 | | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | 1722 | | |
1727 | 1723 | | |
1728 | 1724 | | |
| |||
0 commit comments