build: try to optimize compile time

A while ago we used sccache to reduced a lot of compile time in CI, but didn’t really look into our codebase and dependencies to improve it. So the local DX is not improved.

We haven’t optimized it for long and it also bloated a lot, so it’s worth to at least take a look to see if there’s any low-hanging fruits.

image





Some simple observations:

Read more here: Source link