Commit c167cf2
committed
chore: avoid unnecessary sort to get smallest value
This changes getEarliestTimestamp() to walk the list a single time,
instead of performing a full sort, as a sorted list is not needed, just
the smallest value.1 parent e9bf658 commit c167cf2
1 file changed
Lines changed: 4 additions & 7 deletions
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
81 | 79 | | |
82 | | - | |
83 | | - | |
| 80 | + | |
84 | 81 | | |
85 | 82 | | |
0 commit comments