Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Speed up build time with -jX
Forum Updated to NodeBB v4.3 + New Features

Speed up build time with -jX

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    metRo_
    wrote on last edited by
    #1

    My system is: Intel Core2Duo P8400@2.26GHz
    RAM: 4GB
    Windows 7 Professioanl 64bits

    I'm building a "big" project and it takes something like 20/30 minutes. A friend of mine said me to use the -jX but doesn't know what are the best number to use in X, can you tell me what could be the better option in my system? I should add the argument in projects > Make arguments, right? And should i add it to qmake too?

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Usually it's the number of phisical cores that you have (eventually, plus one. Do some benchmarks.)

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Opinions on this differ, and I guess it also differs if you want to use your system in the meantime. Usual numbers of the value of X include N-1, N, N+1 up to N*2, with N being the number of (virtual) cores in your system. I guess it depends on whether your compilation is going to be IO bound, or CPU bound. If you have an SSD for instance, IO will be much faster, and X should probably be closer to N. If you have your sources on a slow resource, you may spend too much time waiting for them that way though, and X could be bigger than N.

        Downside of using -jX, is that it may beharder to find the cause of compilation failures. The cause may not be at the end, but somewhere in the middle of your compile output.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          metRo_
          wrote on last edited by
          #4

          Thanks all :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved