atom-ide-rust icon indicating copy to clipboard operation
atom-ide-rust copied to clipboard

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

Open jon-chuang opened this issue 5 years ago • 1 comments

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: https://github.com/rust-analyzer/rust-analyzer/issues/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.

jon-chuang avatar Aug 31 '20 03:08 jon-chuang

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

jakerumbles avatar Jul 27 '22 20:07 jakerumbles