[Qt-creator] Sensible make -j X?

Jason H jhihn at gmx.com
Thu Oct 22 23:30:42 CEST 2015


That's my problem as well. But be it 8 or 80, anything is better than the default of 1. Your example of 1 and it taking forever is the same as me for my size of projects.

I can't argue that everyone has 80 cores available, but I can argue that 8 is more reasonable than 1.

> Sent: Thursday, October 22, 2015 at 3:50 PM
> From: "Miller Henry" <MillerHenry at JohnDeere.com>
> To: "Jason H" <jhihn at gmx.com>, qt-creator <qt-creator at qt-project.org>
> Subject: RE: [Qt-creator] Sensible make -j X?
>
> That is right for you - I have a massive build farm (look into icecc, distcc, or a commercial equivalent - they are awesum), -j 80 is the sweet stop for me.  I like that Qt Creator stays with -j 1 by default because I notice right away that my build is only spinning off one job and I cancel and fix it.  If qt creator defaulted to -j8 I wouldn't notice until several minutes later when I'm trying to figure out why my build isn't done yet.
> 
> 
> -----Original Message-----
> From: qt-creator-bounces+millerhenry=johndeere.com at qt-project.org [mailto:qt-creator-bounces+millerhenry=johndeere.com at qt-project.org] On Behalf Of Jason H
> Sent: Thursday, October 22, 2015 12:17 PM
> To: qt-creator
> Subject: [Qt-creator] Sensible make -j X?
> 
> In this world, where both phones and computers are averaging 4 cores (or more) does it make sense to ever not default make to 1 thread? I can understand that some situations can't have multi-threaded builds, but I believe they are in the minority now. I find that a good value for -j is N*2 where N is the number of cores (since there is a lot of i/o delay from loading all the headers)
> 
> It would be nice if this was populated from the get-go. I believe it's stored in the .user file? Is there a way to set it in the .pro file? I work in iOS/Android/Desktop, so it's kinda silly to have to set this 6 times (debug/release) in the same project!
> 
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
> 



More information about the Qt-creator mailing list