Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How is Core2Duo speeding up compile-time?

How is Core2Duo speeding up compile-time?

Scheduled Pinned Locked Moved The Lounge
c++questionworkspace
25 Posts 17 Posters 6 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.
  • E El Corazon

    Taka Muraoka wrote:

    I'm thinking maybe VMware is caching disk activity itself and not getting a chance to commit the changes.

    Parallels doesn't. ;P There is good with the bad... a virtual disk heavily cached in memory will run much faster than a virtual disk represented by a single image file. I just peeked at the Parallels options: VM Shutdown behavior Default action to perform on application exit: _X_ Suspend VM ___ Power Off ___ Ask me what to do obviously there will be cases where the host machine is so locked up that it is unable to be powered off gracefully. As with any hardware machine, the more in your cache, the more danger of corruption. You play Russian Roulette with every occurrence, one may or may not do it, but enough chances for corruption... well, we all know the results.

    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

    T Offline
    T Offline
    Taka Muraoka
    wrote on last edited by
    #16

    Jeffry J. Brickley wrote:

    a virtual disk heavily cached in memory will run much faster than a virtual disk represented by a single image file.

    VMware has a option to use a real disk instead of a virtualized one, although they don't seem to have a lot of faith in this feature. One would assume it would be nearly full-speed. I was looking at a Mac laptop but they're way overpriced for what you get and not highly spec'ed enough for what I want. I wasn't really keen to spend all that money to get a Mac just to run Windows on it :-) Maybe I should just run Linux on the host ;P


    0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall. Awasu 2.2.3 [^]: A free RSS/Atom feed reader with support for Code Project.

    E 1 Reply Last reply
    0
    • T Taka Muraoka

      Jeffry J. Brickley wrote:

      a virtual disk heavily cached in memory will run much faster than a virtual disk represented by a single image file.

      VMware has a option to use a real disk instead of a virtualized one, although they don't seem to have a lot of faith in this feature. One would assume it would be nearly full-speed. I was looking at a Mac laptop but they're way overpriced for what you get and not highly spec'ed enough for what I want. I wasn't really keen to spend all that money to get a Mac just to run Windows on it :-) Maybe I should just run Linux on the host ;P


      0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall. Awasu 2.2.3 [^]: A free RSS/Atom feed reader with support for Code Project.

      E Offline
      E Offline
      El Corazon
      wrote on last edited by
      #17

      Taka Muraoka wrote:

      Maybe I should just run Linux on the host

      go for it! My only virtual windows is the work edition of windows... talk about keeping work and home separate now... I have all my work on a VM that I take here and there. :)

      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

      1 Reply Last reply
      0
      • C Christof Schardt

        My C++-project has >500 cpp-Files and takes >20min. to build. Configuration: Visual-C++ (VS2005) on a Pentium 4 with 3GHZ and 2GB RAM. I wonder, whether a new machine could significantly cut down my compile-times. Core2Duo is advertised to perform by dimensions better than all previous processors. Can anyone give an estimation, which gain I could expect from changing to a up-to-date machine (especially with respect to C++-compiling?) Thanks CHristof

        A Offline
        A Offline
        achillepaoloni
        wrote on last edited by
        #18

        In effect your 2GB RAM is very good, but for compilation you could try to search if you RAM is really all available(or how much remain): verify it. Your CPU is hyper-threading this could help you for compile time. I've a other dual-core, model D830 and with example-app in C++, with several files(but not up 500, like your) and in effect respect previous Opteron 142, i've seen that speed is more fast. Find other variables like: 1) Memory type(DDR2 is more fast) and dual-channel configuration 2) CPU clock 3) Cache first and second level 4) Chipset If you've always this application type, with up 500 files, you can try to, not only dual-core, but dual-processor mb and 4GB RAM. Verify last processors and benchmark. Achille

        1 Reply Last reply
        0
        • C Christof Schardt

          My C++-project has >500 cpp-Files and takes >20min. to build. Configuration: Visual-C++ (VS2005) on a Pentium 4 with 3GHZ and 2GB RAM. I wonder, whether a new machine could significantly cut down my compile-times. Core2Duo is advertised to perform by dimensions better than all previous processors. Can anyone give an estimation, which gain I could expect from changing to a up-to-date machine (especially with respect to C++-compiling?) Thanks CHristof

          D Offline
          D Offline
          Dan Berger
          wrote on last edited by
          #19

          With something like IncrediBuild (http://www.xoreax.com) you'll probably get a pretty decent speedup with your C++ compiles (assuming you have enough memory to support a couple of compiler processes on your machine). It mostly uses network distribution to speed up compiles but can also take advantage of multiple cores. With plain Visual Studio 2005 you'll also be getting some improvement. VS2005 can build two different configurations in parallel on a dual-core machine. The downside is that each project compiles only on one CPU, so if you have one big project that wouldn't be getting any speedup. - Dan

          B 1 Reply Last reply
          0
          • M Marc Clifton

            Having managed C++ projects of that magnitude and more, I was appalled when I stepped into a project and discovered people had build times like that. The first thing I did was rearchitect the project so that there were discrete modules that were disconnected from each other. Yes, that took rearchitecting, but the payoff was tremendous. Consider a project whose development time is 2-3 years, and when you take a build process that takes 20-30 minutes down to 1 minute because you just are rebuilding the module you're working with, that was a major impact to productivity. So, the point being, don't look to better processors. Fix the root of the problem. Marc

            Thyme In The Country

            People are just notoriously impossible. --DavidCrow
            There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
            People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

            P Offline
            P Offline
            pg az
            wrote on last edited by
            #20

            Several months back I decided to bother to create my own statically-linked libraries for commmon stuff - I got maybe a factor of two from that. A factor of two on 20 minutes is Good !

            pg--az

            1 Reply Last reply
            0
            • D Dan Berger

              With something like IncrediBuild (http://www.xoreax.com) you'll probably get a pretty decent speedup with your C++ compiles (assuming you have enough memory to support a couple of compiler processes on your machine). It mostly uses network distribution to speed up compiles but can also take advantage of multiple cores. With plain Visual Studio 2005 you'll also be getting some improvement. VS2005 can build two different configurations in parallel on a dual-core machine. The downside is that each project compiles only on one CPU, so if you have one big project that wouldn't be getting any speedup. - Dan

              B Offline
              B Offline
              benjymous
              wrote on last edited by
              #21

              Yeah, I'd second that Incredibuild recommendation - it really makes a big difference here when building big projects :)

              -- Help me! I'm turning into a grapefruit! Buzzwords!

              1 Reply Last reply
              0
              • C Christof Schardt

                My C++-project has >500 cpp-Files and takes >20min. to build. Configuration: Visual-C++ (VS2005) on a Pentium 4 with 3GHZ and 2GB RAM. I wonder, whether a new machine could significantly cut down my compile-times. Core2Duo is advertised to perform by dimensions better than all previous processors. Can anyone give an estimation, which gain I could expect from changing to a up-to-date machine (especially with respect to C++-compiling?) Thanks CHristof

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #22

                The latest Microsoft compile is still single-threaded (as far as I know), and I'm afraid that only multi-threaded applications will benefit from a Core2Duo processor. Our company uses a commercial product called 'Xoreax Incredibuild' that runs distributed compilations on our LAN. The speedup depends on the number of processors working on the compilation, in our case the compilation is about 6 times faster using 7 agents (processors). The downside to this is that it's quite expensive, about 400$ per agent (the last time I checked)

                1 Reply Last reply
                0
                • C Christof Schardt

                  My C++-project has >500 cpp-Files and takes >20min. to build. Configuration: Visual-C++ (VS2005) on a Pentium 4 with 3GHZ and 2GB RAM. I wonder, whether a new machine could significantly cut down my compile-times. Core2Duo is advertised to perform by dimensions better than all previous processors. Can anyone give an estimation, which gain I could expect from changing to a up-to-date machine (especially with respect to C++-compiling?) Thanks CHristof

                  J Offline
                  J Offline
                  Jason J Neigh
                  wrote on last edited by
                  #23

                  While I agree that fixing the underlying problem is the better plan, I thought I'd answer the question literally, too. I haven't gotten to try new compile times on one, but a similarly linear process that ran 2 hours(EXACTLY) on a 2.8G Pentium-D or Xeon (2 processors) machine ran in just under 1 hour on a 2.8G Core2Duo for me. Not really a good benchmark, different OSes, installed software and Virus Scan, and other hardware... But, I was impressed.:cool:

                  1 Reply Last reply
                  0
                  • C Christof Schardt

                    My C++-project has >500 cpp-Files and takes >20min. to build. Configuration: Visual-C++ (VS2005) on a Pentium 4 with 3GHZ and 2GB RAM. I wonder, whether a new machine could significantly cut down my compile-times. Core2Duo is advertised to perform by dimensions better than all previous processors. Can anyone give an estimation, which gain I could expect from changing to a up-to-date machine (especially with respect to C++-compiling?) Thanks CHristof

                    A Offline
                    A Offline
                    Amar Chaudhary
                    wrote on last edited by
                    #24

                    a small tip increase the priority of your process to real time (it will work if your cpu/ram are not running 100%) i dont know much about c++ but you should use dlls where ever you can so that you dont need to compile them every time remember the saying (devide and rule) :):)

                    It is Good to be Important but! it is more Important to be Good

                    1 Reply Last reply
                    0
                    • C Christof Schardt

                      My C++-project has >500 cpp-Files and takes >20min. to build. Configuration: Visual-C++ (VS2005) on a Pentium 4 with 3GHZ and 2GB RAM. I wonder, whether a new machine could significantly cut down my compile-times. Core2Duo is advertised to perform by dimensions better than all previous processors. Can anyone give an estimation, which gain I could expect from changing to a up-to-date machine (especially with respect to C++-compiling?) Thanks CHristof

                      O Offline
                      O Offline
                      olafa
                      wrote on last edited by
                      #25

                      Our solution consists of 41 projects (both vb.net and C#). Our configuration is VS2005 on a Dell Precision 390's with 4GB RAM, 2x SCSI (10k RPM) HDD's using RAID 0 and a Core2Duo Extreme 2.93GHz CPU. Compilation time is minimal and VS2005 runs FAST! Beforehand, we ran on HP Pentium 4 2.8GHz HT with 2GB RAM and 1x SATA 7200 RPM HHD's and everything was SLOW as a snail on ritalin! We lost hours a day to compilation time with VS2005. The new hardware has made coding a pleasure again, with zero hassles and the solution takes about 20 seconds to compile = much happier developers :) Even with the high cost of the new hardware, we calculated that we would break even within 2 to 3 months due to the increase in productivity and not losing as much time to compilation.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups