Posted: 23 Dec 2015, 04:45
Doing lots of "code optimization" these days and I'm wondering what the most CPU friendly way of waiting one bloc is in a script.
If I understand correctly, setting a flag based on polling an input in the main process block of a script, and then executing code using a condition will allow me to span blocs. Compared to the event-driven fast callback procedure, continuously polling and looping in the body seems processing intensive.
Is there a way that I can trigger a script's execution using the callback but have it wait one bloc to update an output? Can I simply move the flag-&-conditional-evaluation into a procedure called from the fast callback?
If I understand correctly, setting a flag based on polling an input in the main process block of a script, and then executing code using a condition will allow me to span blocs. Compared to the event-driven fast callback procedure, continuously polling and looping in the body seems processing intensive.
Is there a way that I can trigger a script's execution using the callback but have it wait one bloc to update an output? Can I simply move the flag-&-conditional-evaluation into a procedure called from the fast callback?