linuxserver / docker-ffmpeg

GNU General Public License v3.0
154 stars 46 forks source link

Set makeflags jobs to number of CPUs detected on host #58

Closed Brainiarc7 closed 9 months ago

Brainiarc7 commented 9 months ago

Description:

This patch sets makeflags jobs to number of CPUs detected on host via nproc.

Benefits of this PR and context:

This patch sets the makeflags variable to the automatically detected number of logical CPUs on the host via nproc, instead of hard-coding the number to 4. This should speed up the build times significantly on modern multi-processor hosts.

aptalca commented 9 months ago

Thanks for the PR, but we hardcoded it specifically for our ci.