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
Fixed.startOfWeek performs an O(n) search backwards to find the closest day with the proper .dayOfWeek value. This could be short-circuited by attempting to calculate how far away the start of the week should be, jumping to it, and testing the value. Then the iterative approach could be used as a fallback.
The text was updated successfully, but these errors were encountered:
Fixed.startOfWeek
performs an O(n) search backwards to find the closest day with the proper.dayOfWeek
value. This could be short-circuited by attempting to calculate how far away the start of the week should be, jumping to it, and testing the value. Then the iterative approach could be used as a fallback.The text was updated successfully, but these errors were encountered: