Rust Analyzer formatting/checking is slow, blocks file saving and only rechecks file on save. #5111
Labels
A-perf
performance issues
E-hard
S-unactionable
Issue requires feedback, design decisions or is blocked on other work
Rust Analyzer formatting/checking takes >600 ms when saving a file and it blocks the file from actually saving when I press
CTRL+S
. This is really annoying because I want tocargo run
immediately after saving and I often run the old version of the code and wonder why something is broken.It would be great if this actually didn't block saving and would let the file to be written to the disk before checking & formatting has finished, and it can be saved again when all of that is done. Especially because formatting won't impact the running of my program and
cargo run
will do all of the checking before compilation anyways.I'm not exactly sure why this whole process is so slow (even on small files, this one in particular is <200 LOC) but making it faster would certainly greatly improve user experience.
It would also be great if the checking of the file (for compilation errors) would happen periodically, and not only when I save the file.
Relevant log:
The text was updated successfully, but these errors were encountered: