{"action":"created","issue":{"url":"https://api.github.com/repos/yaru22/angular-timeago/issues/49","repository_url":"https://api.github.com/repos/yaru22/angular-timeago","labels_url":"https://api.github.com/repos/yaru22/angular-timeago/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/yaru22/angular-timeago/issues/49/comments","events_url":"https://api.github.com/repos/yaru22/angular-timeago/issues/49/events","html_url":"https://github.com/yaru22/angular-timeago/issues/49","id":124081871,"number":49,"title":"Don't run the timeout each second","user":{"login":"dirkgroenen","id":1001391,"avatar_url":"https://avatars.githubusercontent.com/u/1001391?v=3","gravatar_id":"","url":"https://api.github.com/users/dirkgroenen","html_url":"https://github.com/dirkgroenen","followers_url":"https://api.github.com/users/dirkgroenen/followers","following_url":"https://api.github.com/users/dirkgroenen/following{/other_user}","gists_url":"https://api.github.com/users/dirkgroenen/gists{/gist_id}","starred_url":"https://api.github.com/users/dirkgroenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirkgroenen/subscriptions","organizations_url":"https://api.github.com/users/dirkgroenen/orgs","repos_url":"https://api.github.com/users/dirkgroenen/repos","events_url":"https://api.github.com/users/dirkgroenen/events{/privacy}","received_events_url":"https://api.github.com/users/dirkgroenen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-28T15:36:39Z","updated_at":"2016-05-11T20:25:41Z","closed_at":"2016-05-11T20:25:41Z","body":"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. \r\n\r\nInstead 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."},"comment":{"url":"https://api.github.com/repos/yaru22/angular-timeago/issues/comments/218579276","html_url":"https://github.com/yaru22/angular-timeago/issues/49#issuecomment-218579276","issue_url":"https://api.github.com/repos/yaru22/angular-timeago/issues/49","id":218579276,"user":{"login":"yaru22","id":49256,"avatar_url":"https://avatars.githubusercontent.com/u/49256?v=3","gravatar_id":"","url":"https://api.github.com/users/yaru22","html_url":"https://github.com/yaru22","followers_url":"https://api.github.com/users/yaru22/followers","following_url":"https://api.github.com/users/yaru22/following{/other_user}","gists_url":"https://api.github.com/users/yaru22/gists{/gist_id}","starred_url":"https://api.github.com/users/yaru22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaru22/subscriptions","organizations_url":"https://api.github.com/users/yaru22/orgs","repos_url":"https://api.github.com/users/yaru22/repos","events_url":"https://api.github.com/users/yaru22/events{/privacy}","received_events_url":"https://api.github.com/users/yaru22/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T20:25:41Z","updated_at":"2016-05-11T20:25:41Z","body":"Thanks to @jharting, you can set `timeAgo.settings.refreshMillis` to tweak that behavior now. Please see #62."}}