Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Haskell use whole processor power while compiling

I noticed that when I do compilation, installing some module, haskell compiler uses only one processor (blue chart 1/4)? 1 of 4 on my laptop.

I've heard that Haskell Compiler is smart, so it could safe my time using all I have.

Is there a way to make it faster? Some configuration maybe.

There is a pic - processor graph is blue. Yellow - network. Red - hard-drive.

At that moment when screenshot was made it could use all processor time since it does not use either hard-drive or network.

enter image description here

like image 865
ses Avatar asked May 09 '14 22:05

ses


1 Answers

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

like image 172
bheklilr Avatar answered Nov 15 '22 09:11

bheklilr