make -j$(nproc) when calling makeWhen you run make from the shell, use all your CPU cores so builds finish faster:
make -j$(nproc)
-j N tells make to run up to N jobs at the same time instead of one after another.$(nproc) is the number of (logical) CPUs on your machine, so you don’t have to pick a number.ship:
CGO_ENABLED=0 go build -p "$$(nproc)" -o app
make (no -j) runs a single job at a time—correct but often slower than necessary.-j1 only when you need to (e.g. to avoid flaky parallel builds or reduce load).Use: make -j$(nproc)
Avoid as default: make (single-threaded) unless you have a reason.