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: fix needless sorting on every holiday insert
Sorting after each insertion results in O(n² log n) complexity when
adding n holidays. For a provider with 20 holidays, this means
sorting 20 times instead of once. Using deferred sorting avoids this
issue which could result in 10-20x faster initialization for
providers with many holidays.
Signed-off-by: Sacha Telgenhof <me@sachatelgenhof.com>
0 commit comments