Don't run the timeout each second
dirkgroenen opened this issue · 1 comments
dirkgroenen commented
At the moment the filter uses an interval of 1 second to check if the value has to be changed. Since each call to $timeout
will make the digest cycle run it's quite a waste of performance. I know we're talking about a little bit of performance over here, but every save is a win.
Instead of running it each second it would make more sense to check the possibility of a future update and set the timeout delay based on that.