{"action":"created","issue":{"url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/issues/12","labels_url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/issues/12/comments","events_url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/issues/12/events","html_url":"https://github.com/DreaminginCodeZH/MaterialProgressBar/issues/12","id":121882452,"number":12,"title":"init() should be called delayed","user":{"login":"oliverhausler","id":8090341,"avatar_url":"https://avatars.githubusercontent.com/u/8090341?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverhausler","html_url":"https://github.com/oliverhausler","followers_url":"https://api.github.com/users/oliverhausler/followers","following_url":"https://api.github.com/users/oliverhausler/following{/other_user}","gists_url":"https://api.github.com/users/oliverhausler/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverhausler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverhausler/subscriptions","organizations_url":"https://api.github.com/users/oliverhausler/orgs","repos_url":"https://api.github.com/users/oliverhausler/repos","events_url":"https://api.github.com/users/oliverhausler/events{/privacy}","received_events_url":"https://api.github.com/users/oliverhausler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"DreaminginCodeZH","id":4469895,"avatar_url":"https://avatars.githubusercontent.com/u/4469895?v=3","gravatar_id":"","url":"https://api.github.com/users/DreaminginCodeZH","html_url":"https://github.com/DreaminginCodeZH","followers_url":"https://api.github.com/users/DreaminginCodeZH/followers","following_url":"https://api.github.com/users/DreaminginCodeZH/following{/other_user}","gists_url":"https://api.github.com/users/DreaminginCodeZH/gists{/gist_id}","starred_url":"https://api.github.com/users/DreaminginCodeZH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DreaminginCodeZH/subscriptions","organizations_url":"https://api.github.com/users/DreaminginCodeZH/orgs","repos_url":"https://api.github.com/users/DreaminginCodeZH/repos","events_url":"https://api.github.com/users/DreaminginCodeZH/events{/privacy}","received_events_url":"https://api.github.com/users/DreaminginCodeZH/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-12T21:38:50Z","updated_at":"2015-12-13T03:41:23Z","closed_at":null,"body":"MaterialProgressBar fully initializes even though it is set to INVISIBLE or GONE. It should instead only call init() when it first becomes visible.\r\n\r\nI did some profiling and could improve overall time to set up a view to 20% just by removing MaterialProgressBar. I admit I used it very often, but you should still initialize lazy right before it is needed."},"comment":{"url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/issues/comments/164217018","html_url":"https://github.com/DreaminginCodeZH/MaterialProgressBar/issues/12#issuecomment-164217018","issue_url":"https://api.github.com/repos/DreaminginCodeZH/MaterialProgressBar/issues/12","id":164217018,"user":{"login":"DreaminginCodeZH","id":4469895,"avatar_url":"https://avatars.githubusercontent.com/u/4469895?v=3","gravatar_id":"","url":"https://api.github.com/users/DreaminginCodeZH","html_url":"https://github.com/DreaminginCodeZH","followers_url":"https://api.github.com/users/DreaminginCodeZH/followers","following_url":"https://api.github.com/users/DreaminginCodeZH/following{/other_user}","gists_url":"https://api.github.com/users/DreaminginCodeZH/gists{/gist_id}","starred_url":"https://api.github.com/users/DreaminginCodeZH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DreaminginCodeZH/subscriptions","organizations_url":"https://api.github.com/users/DreaminginCodeZH/orgs","repos_url":"https://api.github.com/users/DreaminginCodeZH/repos","events_url":"https://api.github.com/users/DreaminginCodeZH/events{/privacy}","received_events_url":"https://api.github.com/users/DreaminginCodeZH/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T03:41:23Z","updated_at":"2015-12-13T03:41:23Z","body":"Inflating the framework XML vector drawable should be much more expansive than creating the custom Java drawable in this library, except the creation of compat animators and interpolators on platforms prior to Lollipop where I workarounded by generating some float array for `PropertyValuesHolder` with `PathMeasure` (see [ObjectAnimatorCompatBase](library/src/main/java/me/zhanghai/android/materialprogressbar/internal/ObjectAnimatorCompatBase.java) and the source of support-v4 `PathInterpolatorCompat`).\r\n\r\nIt would be nice if you could investigate the bottleneck of the performance problem, whether this only happens on old platforms, and where is critical (for example I doubt whether I should have interpolated 500 points for accuracy now)."}}