I am using vscode remote+rust-analyzer+clippy to develop risingwave in debain10 (8c16G). However rust-analyzer is too slow, especially when I save my code it checks a lot of things causing the code hints and others not work. What’s the best config for vscode-rust, is it possible to make rust-analyzer check only changed crates?
BanBuDu0
Asked on Apr 17, 2023
Turn off 'check on save': Disabling this feature can reduce the time taken for rust-analyzer to analyze the code every time you save.
Use default settings: Using rust-analyzer without any custom settings can provide acceptable speed, although it may not be extremely fast.
Optimize startup time: If the startup time is slow, you can explore ways to optimize it for better performance.
Monitor hint generation time: Keep an eye on the time taken for hint generation in your IDE. If it's consistently high, you may need to further optimize rust-analyzer or your development environment.
Consider hardware resources: Ensure that your system has sufficient resources (CPU, memory) to support the performance requirements of rust-analyzer and vscode for smooth operation.