I have a crate that is getting big, with some dependencies using a lot of macros.
The culprits are here.
Linus Debian
VSCode
RA plugin
Everything up to date, with nightly toolchain.
I have to restart the rust analyzer server multiple times a day because it becomes unresponsive.
My machine has a lot of spare ram (32GB) and a processor that is still OK (i7 8750H).
I tried to increase the LRU capacity to 8192, even tried 16384 (that should be huge enough).
The effect is minimal.
So is there any (un)known tip that increase its perf? I don't care if it's a memory hog. I just want it to be faster/ more reactive and stop restarting RA every 5 minutes because errors are kept active when they are solved already.
Can you split your big crate into smaller crates? If it's big there must be parts of it that are quite stable and that you could put into other smaller crates
Is there an easy way to toggle the check command so that I can use cargo check most of the time for quick error checking and then use clippy to clean up the code once it compiles.