Hello Rustaceans! I'm a new Rustacean setting up dev environment with VSCode and rust-analyzer
. I observed that rust-analyzer
is running about 5 times faster on Linux than on Win10 (I use the same settings as using clippy
). Is this behavior expected? Here is my environment:
Win10 (local OS on laptop):
- MSYS2
- toolchain: stable-x86_64-pc-windows-gnu
Ubuntu 20.04 (guest OS in VMware on Win10):
- toolchain: stable-x86_64-unknown-linux-gnu
update: the laptop is ThinkPad P1, using SSD
update: I highly suspect Windows Defender causes this issue. Every time I save my .rs
file (this triggers rust-analyzer
), the antimalware service
will be triggered, and its CPU usage is high. I tried to set the whitelist as follows, but it doesn't work. Any suggestions?