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
{{ message }}
Repository navigation
Start expansion near the window for open-ended series #37
expandOccurrences always iterates from DTSTART. An open-ended series far from its start (a yearly birthday from 1960, a daily series from 2010) costs work proportional to its age, not to the window, before the first occurrence in the window is reached. With many such series the shared work budget runs out and consumers report "incomplete" although nothing is wrong. Seen in the review of PhilflowIO/dav-mcp#170: about 1,600 open-ended yearly series exhaust a 300,000-unit budget on every call.
Fix
expandOccurrences takes an optional lower bound (from). For a rule without COUNT, iteration starts at the last rule period at or before from that is aligned to DTSTART by FREQ and INTERVAL (year / month / week with WKST / day / hour / minute / second), computed on the series' wall clock, instead of at DTSTART. BY parts and BYSETPOS apply per period, so the result is unchanged.
With COUNT, the start cannot be skipped (the count needs every earlier instance); keep iterating from DTSTART, or document a cheaper exact route if one exists.
RDATE, EXDATE and overrides behave exactly as now.
Cost of an open-ended series becomes independent of its age.
Activity
fix(query): fall back to all events only on a refused filter
fix(expand): close the gaps the review of #39 found
build(dist): rebuild for the review fixes
fix(expand): say when ical.js gives a rule up in the range
build(dist): rebuild for the library stop
fix(errors): give the library stop its own refusal code
build(dist): rebuild for CHECK_LIBRARY_STOPPED
fix(query): fall back to all events only on a refused filter