near / mpc

36 stars 11 forks source link

Optimize dependency tree for faster builds #780

Open ChaoticTempest opened 1 month ago

ChaoticTempest commented 1 month ago

Currently our build times are a bit longer than we want it to be especially with rust-analyzer taking huge swaths of time since we have multiple projects it needs to pick up in this repo.

We should try to optimize our dependency tree to make this better. There's bound to be some dependencies where we have multiple versions of that are unneeded and can be just pointed to a single version

DavidM-D commented 1 month ago

Explicitly telling rust-analyser about having multiple LSP project roots speeds it up a lot. It stops the deadlocks/timeouts you normally get in rust anaylser.

I use .project files, but in VS Code you have to do some sort of JSON file