perf(planning): build placement date keys directly
This commit is contained in:
1 parent
cbde23f572
commit
c7e7abcd24
2 files changed
+54
-4
No files matched your search
@@ -3317,10 +3317,7 @@ function preferenceStateKey(state: State): string {
|
||||
}
|
||||
|
||||
function placementTieKey(state: State): string {
|
||||
return [...state.placements.values()]
|
||||
.map((placement) => placement.date)
|
||||
.sort(compareDate)
|
||||
.join('|');
|
||||
return [...state.placements.keys()].sort().join('|');
|
||||
}
|
||||
|
||||
function expiryTieKey(state: State): string {
|
||||
|
||||
Reference in new issue
Block a user