<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>My idea is to set the starting point for <a href="https://docs.python.org/3.6/library/itertools.html#itertools.product">itertools.product()</a> since it becomes very slow if the point of interest is in the middle. For example when working with datetime tuples with seconds resolution (worst case, milli/microseconds), you need to skip a lot of items. <br></div><div><br></div><div>There are several methods I have tried as an alternative but itertools.product() is the fastest:</div><div>- datetime and timedelta<br></div><div>- naive looping</div><div><br></div><div>This is where I applied it but the issue at seconds resolution is still a bottleneck: <a href="https://github.com/Code-ReaQtor/DocCron/blob/1.0.0/doccron/job.py#L171">https://github.com/Code-ReaQtor/DocCron/blob/1.0.0/doccron/job.py#L171</a><br></div><div><br></div><div>Setting the starting point might come in handy if we want to skip several data.</div><div> What do you think?</div><div><br></div><div>Best Regards,</div><div>Ronie<br></div></div></div>