Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information