Code review comment for lp:~dandrader/mir/cross-compile-parallel

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

> Good idea but:
> NUM_JOBS=$(( `grep -c ^processor /proc/cpuinfo` + 1 ))
> Why the "+ 1"?

To squeeze more juice out of the CPU, helping ensure it's 100% busy building the code. :)
In my experience a CPU can handle more build threads than its number of cores without hampering the execution speed of the individual threads.

« Back to merge proposal