{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rls/issues/833","repository_url":"https://api.github.com/repos/rust-lang-nursery/rls","labels_url":"https://api.github.com/repos/rust-lang-nursery/rls/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rls/issues/833/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rls/issues/833/events","html_url":"https://github.com/rust-lang-nursery/rls/issues/833","id":316299092,"number":833,"title":"RLS uses 25% CPU all the time and responds slowly","user":{"login":"Boscop","id":535593,"avatar_url":"https://avatars1.githubusercontent.com/u/535593?v=4","gravatar_id":"","url":"https://api.github.com/users/Boscop","html_url":"https://github.com/Boscop","followers_url":"https://api.github.com/users/Boscop/followers","following_url":"https://api.github.com/users/Boscop/following{/other_user}","gists_url":"https://api.github.com/users/Boscop/gists{/gist_id}","starred_url":"https://api.github.com/users/Boscop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boscop/subscriptions","organizations_url":"https://api.github.com/users/Boscop/orgs","repos_url":"https://api.github.com/users/Boscop/repos","events_url":"https://api.github.com/users/Boscop/events{/privacy}","received_events_url":"https://api.github.com/users/Boscop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T14:52:02Z","updated_at":"2018-04-20T14:52:02Z","closed_at":null,"author_association":"NONE","body":"For small projects, RLS calls seem to return almost immediately (in Sublime Text), but for my current project which currently has ~16000 lines just in the main workspace (and transitively depends on 247 crates) it takes like 10 seconds to respond, so it lags behind my editing by ~10s and gives a lot of false positives about syntax errors that were just an unfinished line, 10 seconds ago, which is very distracting / annoying.\r\n\r\nAlso, rls.exe constantly uses 25% CPU all the time (even when I haven't typed anything in several minutes), making my laptop's fan spin loudly, which is annoying, too (and reduces the lifespan of the components due to heat). \r\nBtw, my CPU is i7-4720HQ, 8 cores 2.6 GHz, so 25% is **a LOT** for that CPU. (Even heavy real-time audio signal processing doesn't take that much CPU.) \r\nWhy is rls.exe using that much CPU even when nothing about my source / editing buffer is changing?\r\n\r\nI like the vision of RLS but with this lag and high CPU usage it's too distracting for code editing for me :/\r\n\r\nBtw, I have broken down my project into several crates and workspaces, and the edit/compile cycle is very slow (even with incremental compilation because I have to use `opt-level=1`  in debug mode to get acceptable real-time performance). I'm already using `cargo watch -x run` and would like to use RLS for this project, too. But with less lag and less CPU usage, is there a way? :)\r\n\r\n"}}
{"actor":{"display_login":"Boscop"}}