Every time I compile my code in GCC it takes about a minute. What is the best way to speed this up? Should I just buy a newer faster computer?
31 Answer
The best way to speed up recompiles of a developing code is to cache the compiler outputs with ccache. It will work best if only small parts of the code get modified.
Additionally, if you have access to a lot of machines distcc allows you to distribute your compile jobs over a network (that way I can say without fear "Do me a make -j100!). Depending on how many machines you have available this might give a sizeable speed boost.