Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

ide-rust's use of rust analyzer results in extremely poor battery life #182

Open
jon-chuang opened this issue Aug 31, 2020 · 1 comment
Open

Comments

@jon-chuang
Copy link

jon-chuang commented Aug 31, 2020

Ide-rust's use of rust analyzer has very poor impact on laptop battery life.

There needs to be work done to reduce its CPU util when idle.

My battery util with rust analyzer turned on v.s. without is 45W v.s. 10-15W. That is truly a battery life killer.

Are there any suggestions on how this might be done?

Rust analyzer issue: rust-lang/rust-analyzer#5919

Something that would be nice is to have rust-analyzer be manually refreshable, rather than to be called constantly. Or to have a button to toggle whether analyzer is on or off directly in the console, rather than having to navigate to the packages page.

@jakerumbles
Copy link

99% sure it's rust-analyzer killing my battery so fast in vs-code too. I'm working with Substrate so it's a large codebase for it to analyze, but even my new M1 macbook pro takes a beating when it's analyzing, not to mention the fact that it only sometimes works and I get these errors constantly. Hover over tooltips don't usually work sadly :(
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants