I have over 1000 lines of code that I need to run because I need some variables calculated soon after they change.
The problem is that if I run it every second, IndigoServer goes up to 70% CPU load. 5 seconds brings it below 10%.
How can I trigger the scripts every second but only if there are changes to the variables or devices?
Should I check for the SQLite Database (from SQL Logger) or is there another way?