You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: Skip binary search when timestamp is after last transition
Many zones don't have any future transitions (i.e. all their transitions are in
the past, and they don't have any planned DST changes). For these zones,
looping over the `untils` array is pointless for any "now-ish" timestamp.
If the timestamp being checked is after the last `until`, we can skip the binary
search completely.
0 commit comments