Rust painfully slow
I'm using CLion with the new RustRover plugin.
A few weeks ago, when I was using the old Rust plugin, the Rust support in the editor became very slow. If there was a red squiggly under a syntax error and I fixed it, it would take literally a minute for the squiggly to go away. If typed the name of a struct variable and a dot, it would take a some amount of time for the prompt with the struct members to come up: sometimes a minute, sometimes instantly. Syntax highlighting was similarly slow.
It wasn't this way up to a few weeks ago; everything was fast.
I tried the new RustRover plugin today hoping that it would help, but it's no faster.
I'm using the latest version of everything. I'm on a fairly recent M1 Mac.
What's the fix?
Please sign in to leave a comment.
Hello!
Please submit an issue to the RustRover tracker (https://youtrack.jetbrains.com/issues/RUST) and attach a CPU snapshot to it.
same.
Really powerful machine (32 gb DDR5 RAM, AMD Ryzen 9 7950X3D), running clion with 7gb of ram, disabled almost all plugins.
Restarted a few times with Invalidate Caches (checked all 5 boxes)
Still painfully high latency anytime you do something that involves the rust plugin.
Did you all find a solution?
Same here, really slow to the point it takes almost a minutes to list me available methods for struct defined int he project.
(64 GB DDR4 with i9 cpu machine)
Inalidated caches and retart more tiems than i admit at this point.
I disvored that this slow behaviour only appear when I'm bopth reading typescript and rust code on the idea. As soon as I change to a tab where there rust code, the cpu usage spikes and it needs like a mlinute or more to cool down, but still minute waiting to list available methods. I'm developing a tauri app and I'm JetBrains user for at least 10 years now, never had such a problem, I usaly even give like 24GB max memory tot he ide. but lately I started getting ideas that I should learn and move to vim soon, a person would go insane developing on an ide like this…
Edit: I just foudn an issue filled with the same problem: https://youtrack.jetbrains.com/issue/RUST-16441/RustRover-being-slow-in-Tauri-developing