Currently, if you split a time_frame, you often want to enumerate over it afterwards (like mapping it to a specified object).
but useing time_frame.split_by_interval(duration).each has to allocate memory before iterating.
An iterator would improve the iteration speed and cleans up code of gem users.
Currently, if you split a time_frame, you often want to enumerate over it afterwards (like mapping it to a specified object).
but useing time_frame.split_by_interval(duration).each has to allocate memory before iterating.
An iterator would improve the iteration speed and cleans up code of gem users.