{"action":"closed","issue":{"url":"https://api.github.com/repos/cmus/cmus/issues/533","repository_url":"https://api.github.com/repos/cmus/cmus","labels_url":"https://api.github.com/repos/cmus/cmus/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/cmus/cmus/issues/533/comments","events_url":"https://api.github.com/repos/cmus/cmus/issues/533/events","html_url":"https://github.com/cmus/cmus/issues/533","id":178504987,"number":533,"title":"UI is too aggressive at getting volume value","user":{"login":"Wang-Yue","id":889340,"avatar_url":"https://avatars.githubusercontent.com/u/889340?v=3","gravatar_id":"","url":"https://api.github.com/users/Wang-Yue","html_url":"https://github.com/Wang-Yue","followers_url":"https://api.github.com/users/Wang-Yue/followers","following_url":"https://api.github.com/users/Wang-Yue/following{/other_user}","gists_url":"https://api.github.com/users/Wang-Yue/gists{/gist_id}","starred_url":"https://api.github.com/users/Wang-Yue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wang-Yue/subscriptions","organizations_url":"https://api.github.com/users/Wang-Yue/orgs","repos_url":"https://api.github.com/users/Wang-Yue/repos","events_url":"https://api.github.com/users/Wang-Yue/events{/privacy}","received_events_url":"https://api.github.com/users/Wang-Yue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-22T02:23:06Z","updated_at":"2016-09-25T06:29:16Z","closed_at":"2016-09-25T06:29:16Z","body":"see https://github.com/cmus/cmus/blob/1cbf070a86bbd4935bc964d5afcc699f5e1460d2/ui_curses.c#L2175\r\n\r\nFor systems that don't have mixer fd's, it will always call mixer_read_volume() aggressively. \r\n\r\nIt happens that CoreAudio's AudioObjectGetPropertyData is pretty slow and heavy. So we end up with a lot higher CPU usage.  On my machine (a low end Macbook Pro) it went from 0.3% usage to 0.5%. CoreAudio daemon also shows similar higher usage. I can cache some result, but it's better to lower down the time value knob."}}
{"actor":{"display_login":"Wang-Yue"}}