Worst case in extremely big projects you just add some swap and let it run for a while, the time required is still in the order of tens of minutes.
Compare that to hours long c++ build times.