jambonz / jambonz-infrastructure

packer and cloudformation templates for creating EC2-based jambonz deployments
23 stars 29 forks source link

hardcoded -j4 into make command #29

Open asarubbo opened 1 year ago

asarubbo commented 1 year ago

Hello Dave,

for install_freeswitch.sh and install_drachtio.sh there is an hardcoded -j4 for make commands.

This causes machines with a single core processor to go into an overhead and machines with more than 4 cores to go slowly than they can go.

The best solution is define a variable called NPROC into common (proposed into #27) in this way:

NPROC="$( nproc )"

and make arguments will be:

make -j"${NPROC}"

Thanks

HINT: if not broken, make install can also be parallelized as make install -j"${NPROC}"