Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Scheduler] Improve triggers performance when possible#49817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Scheduler] Improve triggers performance when possible#49817
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Why do you think the original version was bad? The Now, there are two algos and "magic" with reflections... The goal of constructors is initialization of objects to a valid state. It's not a big deal, but having logic in a constructor except assertions of arguments is bad practice. Now it has too much "magic". The IMO it was better. |
Uh oh!
There was an error while loading.Please reload this page.
47b35b8
tofe266a5
Compare537e357
to55933a2
CompareUh oh!
There was an error while loading.Please reload this page.
6e48389
toc494148
CompareUh oh!
There was an error while loading.Please reload this page.
c494148
tof70a577
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
cosmetic
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
f70a577
toc80e9ad
CompareUh oh!
There was an error while loading.Please reload this page.
c80e9ad
toa53187f
CompareUh oh!
There was an error while loading.Please reload this page.
1fe7222
toca3c30c
Compareca3c30c
toebcced6
CompareThank you@fabpot. |
Uh oh!
There was an error while loading.Please reload this page.
Using
\DatePeriod
for the default trigger is great as it takes care of all date/time idiosyncrasies.But for high frequencies, that does not work well and performance becomes an issue. So, this PR solves this issue by always using the fast algorithm when the frequency is expressed in seconds (int) or an ISO period (like
PT2S
) or when created from a string that uses a "simple" expression (like2 seconds
)./cc@upyx