7
fonz
5y

make -j20 - that's quick!

Comments
  • 2
    Uhh, I'm dumb. Explain.
  • 5
    It's a flag you pass to make to compile using multiple threads. I've just got a 20 core machine so can use all cores. Let's say build times down from 1 hour to 5 mins.
  • 0
    Do you really get that much speedup? I noticed that beyond j4, there's not much to be gained because the whole thing becomes I/O limited.
  • 0
    @irene I still have an HDD, so I discounted the first test and only took the second, which was a lot faster because shit was in the cache, same as it would have been with an SSD.
  • 0
    @irene I would expect that to go via caching. Hey I got 16 GB after all.
  • 2
    Wait for the moment where you accidentally use make -j and get fucked hard.
  • 3
    @Fast-Nop I definitely see speedups upto -j8 which is the number of virtual cores I have. I maxed out I/O in my build, I use a decent NVMe SSD and 32GB of RAM for caching (didn't buy all this for compiling but hey, worked out)
Add Comment