gabrielesvelto, (edited ) If you're doing a lot of work in C/C++/Rust consider using sccache to cache compilations. It's easy to set up and will save you a lot of time and a huge amount of power.
https://github.com/mozilla/sccache
As an example this is just a couple of hours of work on Firefox, it saved me from re-running the compiler almost 90% of the time.