How to force Haskell to use all processor power at compilation

I noticed that when I do compilation by installing some kind of module, haskell compiler use only one processor (blue 1/4 diagram)? 1 out of 4 on my laptop.

I heard that the Haskell compiler is smart, so it can protect my time using everything I have.

Is there any way to make this faster? Perhaps some configuration.

The pic-processor graph is blue. Yellow is the network. Red is the hard drive.

At that moment, when the screenshot was taken, he could use the whole time of the processor, since it does not use either a hard disk or a network.

enter image description here

+7
haskell haskell-platform
source share
1 answer

You are looking for the -j flag in GHC versions 7.8.1 and higher .

+9
source share

All Articles