Hacker News new | ask | show | jobs
by Avamander 2391 days ago
We should also really update all tutorials out there to use things like `make -j12` and makefiles to link and compile using multiple threads.
1 comments

make -j will do it, but having played around a bit via machines on packet.net, RAM is the limiting factor.
> If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.

On large projects you'll run OOM quickly if you're compiling thousands of files at once. All the context switches also slow down compilation.