perf(planning): build placement date keys directly

This commit is contained in:
nessar committed 2026-10-16 21:03:36 +02:00
1 parent cbde23f572
commit c7e7abcd24
2 files changed
+54 -4

No files matched your search

+1 -4
View File
@@ -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 {