{"action":"created","issue":{"url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/123","labels_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/123/comments","events_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/123/events","html_url":"https://github.com/atom-haskell/ide-haskell/issues/123","id":115986863,"number":123,"title":"Frequent wakeups from idle","user":{"login":"spencerjanssen","id":2600039,"avatar_url":"https://avatars.githubusercontent.com/u/2600039?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerjanssen","html_url":"https://github.com/spencerjanssen","followers_url":"https://api.github.com/users/spencerjanssen/followers","following_url":"https://api.github.com/users/spencerjanssen/following{/other_user}","gists_url":"https://api.github.com/users/spencerjanssen/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerjanssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerjanssen/subscriptions","organizations_url":"https://api.github.com/users/spencerjanssen/orgs","repos_url":"https://api.github.com/users/spencerjanssen/repos","events_url":"https://api.github.com/users/spencerjanssen/events{/privacy}","received_events_url":"https://api.github.com/users/spencerjanssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-09T22:57:54Z","updated_at":"2015-11-12T20:46:39Z","closed_at":null,"body":"On my Linux system, when ide-haskell is enabled and a Haskell file is open, I see about 6% CPU utilization even when the editor is completely idle.  When ide-haskell is disabled Atom goes back to the 0-1% range.\r\n\r\nI ran the development tools profiler and found Atom sleeps for about 16ms, runs for 1ms, then repeats.  I disabled ide-haskell and took another profiler sample and found a more reasonable pattern of 400ms sleep between short bursts of activity.\r\n\r\nWhile this is a pretty minor issue it would still be nice to avoid wasting CPU and battery unnecessarily.  I might try to fix this myself but would appreciate some pointers on which part of the code might be causing the issue.\r\n\r\nI think this is unrelated to #109. I'm only seeing moderate amounts of CPU use, nothing like the 150% mentioned there."},"comment":{"url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/comments/156228931","html_url":"https://github.com/atom-haskell/ide-haskell/issues/123#issuecomment-156228931","issue_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/123","id":156228931,"user":{"login":"spencerjanssen","id":2600039,"avatar_url":"https://avatars.githubusercontent.com/u/2600039?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerjanssen","html_url":"https://github.com/spencerjanssen","followers_url":"https://api.github.com/users/spencerjanssen/followers","following_url":"https://api.github.com/users/spencerjanssen/following{/other_user}","gists_url":"https://api.github.com/users/spencerjanssen/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerjanssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerjanssen/subscriptions","organizations_url":"https://api.github.com/users/spencerjanssen/orgs","repos_url":"https://api.github.com/users/spencerjanssen/repos","events_url":"https://api.github.com/users/spencerjanssen/events{/privacy}","received_events_url":"https://api.github.com/users/spencerjanssen/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T20:46:39Z","updated_at":"2015-11-12T20:46:39Z","body":"Did some poking around in the Elements inspector and found an `ide-haskell-progress-bar` element with `visibility: hidden` in the panel.  On a hunch I deleted it and found that the excessive wakeups were gone.  I noticed the CSS attached to that element has some animation properties, perhaps that's the issue?"}}