use make -j instead of make to speed up compilation

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

use make -j instead of make to speed up compilation

Post by NicolasRobidoux »

ImageMagick compication (or recompilation) can take a substantial amount of time.
Use

Code: Select all

make -j(number of logical cores + 1)
instead of

Code: Select all

make
to make (re)compilation of ImageMagick (or anything else, for that matter) less painful on a CPU with multiple (logical) cores.
For example, with an Intel i5, use

Code: Select all

make -j5
. "5" is used because i5 chips have 4 logical cores. So, (number of logical cores) + 1 = 4 + 1 = 5.
Post Reply