{"action":"closed","issue":{"url":"https://api.github.com/repos/ocpsoft/prettytime/issues/69","labels_url":"https://api.github.com/repos/ocpsoft/prettytime/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/ocpsoft/prettytime/issues/69/comments","events_url":"https://api.github.com/repos/ocpsoft/prettytime/issues/69/events","html_url":"https://github.com/ocpsoft/prettytime/issues/69","id":26153621,"number":69,"title":"PrettyTime.getUnits() slow?","user":{"login":"sgehrman","id":287137,"avatar_url":"https://avatars.githubusercontent.com/u/287137?v=3","gravatar_id":"","url":"https://api.github.com/users/sgehrman","html_url":"https://github.com/sgehrman","followers_url":"https://api.github.com/users/sgehrman/followers","following_url":"https://api.github.com/users/sgehrman/following{/other_user}","gists_url":"https://api.github.com/users/sgehrman/gists{/gist_id}","starred_url":"https://api.github.com/users/sgehrman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgehrman/subscriptions","organizations_url":"https://api.github.com/users/sgehrman/orgs","repos_url":"https://api.github.com/users/sgehrman/repos","events_url":"https://api.github.com/users/sgehrman/events{/privacy}","received_events_url":"https://api.github.com/users/sgehrman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-01-23T09:29:23Z","updated_at":"2015-03-07T23:05:11Z","closed_at":"2015-03-07T23:05:11Z","body":"calculateDuration calls getUnits() twice and getUnits allocs new array etc.  Could you update it to be faster and not alloc memory as often?  Using on Android and this is showing up when profiling as slow.  Using this in a scrolling list of views and it's laggy."}}