Daisuke Maki wrote in "DateTime-Event-Lunar":
>
> CAVEATS 
> 
> Spansets created via intersection() functions are *very* slow at first,
> because it needs to calculate all the possible values within
> the span first. If you are going to be using these values in different 
> places, it is strongly suggested that you create one spanset
> before hand that others can refer to.
>

That's one way to fix it - another way is to use lazy evaluation.

When Date::Set detects that it will have to instantiate 
"too many" datetimes, than it changes to lazy evaluation mode.

The instantiation limit is currently fixed at 200 
elements, but this number could be a parameter to the
from_recurrence() constructor.

How about including this in the API?

- Flavio S. Glock

Reply via email to