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. Considering starting a software project - anything like this exist?

Considering starting a software project - anything like this exist?

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioc++comhelp
62 Posts 25 Posters 1 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.
  • J Jim Crafton

    On the surface it sounds interesting, but it sounds like you need to do some sort of profiling to figure out where the bottlenecks really are. If the bottlenecks are deep within VS itself, then I don't know how much you could help it along? But definitely sounds interesting.

    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

    J Offline
    J Offline
    Judah Gabriel Himango
    wrote on last edited by
    #7

    Right. I would certainly do some profiling before even going to a proof-of-concept. Now I would skip Visual Studio altogether, of course, going directly to MSBuild system to do the builds. The gains I'd hope to achieve are building independent projects on multiple machines in parallel.

    Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

    1 Reply Last reply
    0
    • T TheGreatAndPowerfulOz

      yes, in fact, I think it's already part of msbuild (or maybe part of VS2010 msbuild) you can get a huge speed increase by making all your projects output to the same bin directory. the only caveat being that web projects need to still output to individual bins

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #8

      Yeah, I'm aware of that. The NDepend creator, whose name escapes me at the moment, blogged about this recently. Still, I suspect very few developers take advantage of this, and fewer that can actually save time by doing it this way, as there are some notable exceptions to the rule. Even if we can save time by outputting to the same bin directory, I think we can get a good speed up by doing a distributed build. Theoretically, anyways.

      Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

      T 1 Reply Last reply
      0
      • B Brady Kelly

        I have never worked on a project that took more than a minute to build. Where have I been all my life?

        I have been trying for weeks to get this little site indexed. If you wonder what it is, or would like some informal accommodation for the 2010 World Cup, please click on this link for Rhino Cottages.

        J Offline
        J Offline
        Judah Gabriel Himango
        wrote on last edited by
        #9

        Our current project here at work takes about 2:30 to build. Even 1:00 is insane, considering we do many builds per day. Make a change to some low-level component, then suddenly all these dependent projects need to build, and you go on a coffee break as VS thrashes your disk for a while. The idea is to make even large solutions (30-50 projects) build in seconds, rather than minutes. The idea is to eliminate coffee breaks. :)

        Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

        D P R R F 8 Replies Last reply
        0
        • J Judah Gabriel Himango

          Driven by really slow build times in our .NET project here at work, and slow build times on the projects I've done consulting for, I'm considering building a Visual Studio add-in + web service that would allow you to perform a distributed build for .NET projects. Performing a build would go like this: -You click Build->Distributed Build in Visual Studio. -The VS add-in would detect which files have changed since the last build. -It send only the changed bytes of those files compressed to the web service. -The web service, having previously analyzed your project dependence hierarchies, figures out which projects need to be rebuilt. -Spreads the builds across multiple machines, each building some independent project(s). Then: -If you're just trying to build the software, it sends back the build result, success or error messages. -If you're trying to actually run the software, it sends only the changed bytes of the assemblies, compressed, back to the VS add-in. I'm thinking I could get super fast build times doing this, much faster than doing a build locally. Obviously some proof-of-concept is in order. Two Questions for you CPians: -Is there any existing distributed build systems for .NET? I see lots of C/C++, but can't find any for .NET projects. -Is this a worthwhile project? .NET projects generally build fast...until you have a large solution with lots of projects.

          Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #10

          How does that compare to IncrediBuild[^]?

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          J T 2 Replies Last reply
          0
          • J Judah Gabriel Himango

            Yeah, I'm aware of that. The NDepend creator, whose name escapes me at the moment, blogged about this recently. Still, I suspect very few developers take advantage of this, and fewer that can actually save time by doing it this way, as there are some notable exceptions to the rule. Even if we can save time by outputting to the same bin directory, I think we can get a good speed up by doing a distributed build. Theoretically, anyways.

            Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

            T Offline
            T Offline
            TheGreatAndPowerfulOz
            wrote on last edited by
            #11

            well, i was able to improve the build times considerably where i worked. we had 200+ projects all outputting to individual directories. it took over 1.5 hours to build. i changed the projects to all output to the same directory. reduced build time to under 5 minutes. yes, 5 minutes. using 10k & 15k rpm raptor drives also helped. but yeah, theoretically you could speed things up with a distributed build. the problem is dependencies.

            Judah Himango wrote:

            blogging on the intarwebs

            lol. i still get a kick out of that US Rep. who called them the itarTUBES :laugh: :-D

            J 1 Reply Last reply
            0
            • S Stuart Dootson

              How does that compare to IncrediBuild[^]?

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              J Offline
              J Offline
              Judah Gabriel Himango
              wrote on last edited by
              #12

              My project has similar goals, albeit a bit more lower-level on the "what to send to/from server" level. However, mine is targeted at .NET code. I checked out IncrediBuild when doing some research last month. AFAICT, it really works on C/C++ only. They claim it does builds for .NET, but it doesn't do distributed builds then, essentially canceling it's usefulness for .NET. (If I'm wrong about this, anyone, please show me documentation/examples otherwise.)

              Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

              S 1 Reply Last reply
              0
              • J Judah Gabriel Himango

                Our current project here at work takes about 2:30 to build. Even 1:00 is insane, considering we do many builds per day. Make a change to some low-level component, then suddenly all these dependent projects need to build, and you go on a coffee break as VS thrashes your disk for a while. The idea is to make even large solutions (30-50 projects) build in seconds, rather than minutes. The idea is to eliminate coffee breaks. :)

                Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #13

                allows for natural coffee breaks!

                ------------------------------------ "Men may make bad decisions, immoral decisions or just plain wrong decisions, but at least they make decisions. Women on the other hand..." Patrick Kielty 2006

                1 Reply Last reply
                0
                • S Stuart Dootson

                  How does that compare to IncrediBuild[^]?

                  Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                  T Offline
                  T Offline
                  TheGreatAndPowerfulOz
                  wrote on last edited by
                  #14

                  to quote from the site: "builds by distributing C/C++ compilation" Judah wants to distribute C# compilation.

                  1 Reply Last reply
                  0
                  • J Judah Gabriel Himango

                    Driven by really slow build times in our .NET project here at work, and slow build times on the projects I've done consulting for, I'm considering building a Visual Studio add-in + web service that would allow you to perform a distributed build for .NET projects. Performing a build would go like this: -You click Build->Distributed Build in Visual Studio. -The VS add-in would detect which files have changed since the last build. -It send only the changed bytes of those files compressed to the web service. -The web service, having previously analyzed your project dependence hierarchies, figures out which projects need to be rebuilt. -Spreads the builds across multiple machines, each building some independent project(s). Then: -If you're just trying to build the software, it sends back the build result, success or error messages. -If you're trying to actually run the software, it sends only the changed bytes of the assemblies, compressed, back to the VS add-in. I'm thinking I could get super fast build times doing this, much faster than doing a build locally. Obviously some proof-of-concept is in order. Two Questions for you CPians: -Is there any existing distributed build systems for .NET? I see lots of C/C++, but can't find any for .NET projects. -Is this a worthwhile project? .NET projects generally build fast...until you have a large solution with lots of projects.

                    Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                    E Offline
                    E Offline
                    Ennis Ray Lynch Jr
                    wrote on last edited by
                    #15

                    I have found that extremely large projects with slow build times can usually be optimized to have fast build times. But that is just my experience. I can tell you, however, that projects with slow build times tend to extract better work from less experienced developers because they are forced to think about their actions a lot more.

                    Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

                    J 1 Reply Last reply
                    0
                    • J Judah Gabriel Himango

                      Our current project here at work takes about 2:30 to build. Even 1:00 is insane, considering we do many builds per day. Make a change to some low-level component, then suddenly all these dependent projects need to build, and you go on a coffee break as VS thrashes your disk for a while. The idea is to make even large solutions (30-50 projects) build in seconds, rather than minutes. The idea is to eliminate coffee breaks. :)

                      Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #16

                      Judah Himango wrote:

                      2:30 to build. Even 1:00 is insane

                      Is that hh:mm or mm:ss ?

                      J 1 Reply Last reply
                      0
                      • J Judah Gabriel Himango

                        Our current project here at work takes about 2:30 to build. Even 1:00 is insane, considering we do many builds per day. Make a change to some low-level component, then suddenly all these dependent projects need to build, and you go on a coffee break as VS thrashes your disk for a while. The idea is to make even large solutions (30-50 projects) build in seconds, rather than minutes. The idea is to eliminate coffee breaks. :)

                        Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                        R Offline
                        R Offline
                        Rocky Moore
                        wrote on last edited by
                        #17

                        Sure must be some kind of application. If you often have to rebuild so many projects that it takes that long to build, perhaps more thought needs to go into the dependencies to make them not quite so tight. Independence can be a good thing :) I do think the idea of a simple distributed build is a good idea though. It is amazing the functionality was not built in many years ago.

                        Rocky <>< Recent Blog Post: Chocolate Chip Cookies!

                        J 1 Reply Last reply
                        0
                        • J Judah Gabriel Himango

                          Driven by really slow build times in our .NET project here at work, and slow build times on the projects I've done consulting for, I'm considering building a Visual Studio add-in + web service that would allow you to perform a distributed build for .NET projects. Performing a build would go like this: -You click Build->Distributed Build in Visual Studio. -The VS add-in would detect which files have changed since the last build. -It send only the changed bytes of those files compressed to the web service. -The web service, having previously analyzed your project dependence hierarchies, figures out which projects need to be rebuilt. -Spreads the builds across multiple machines, each building some independent project(s). Then: -If you're just trying to build the software, it sends back the build result, success or error messages. -If you're trying to actually run the software, it sends only the changed bytes of the assemblies, compressed, back to the VS add-in. I'm thinking I could get super fast build times doing this, much faster than doing a build locally. Obviously some proof-of-concept is in order. Two Questions for you CPians: -Is there any existing distributed build systems for .NET? I see lots of C/C++, but can't find any for .NET projects. -Is this a worthwhile project? .NET projects generally build fast...until you have a large solution with lots of projects.

                          Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                          J Offline
                          J Offline
                          Jorgen Sigvardsson
                          wrote on last edited by
                          #18

                          How much C# code do you have really? In my experience, C# compiles a lot faster than C++ in the order of magnitudes. I have a project with about 120k+ lines of C++ code, and it takes roughly 2-3 minutes to compile on a quad core machine. I don't have nearly as much C# code, only 10k+ maybe. I do know that the C# code compiles blazingly fast though. I think the IDE spends most of its time in starting the C# compiler, rather than waiting for it to complete. I'm really curious to know how much C# code you have. You ought to have the proverbial shitload of code if compilation times are a problem for you...

                          J 1 Reply Last reply
                          0
                          • J Judah Gabriel Himango

                            My project has similar goals, albeit a bit more lower-level on the "what to send to/from server" level. However, mine is targeted at .NET code. I checked out IncrediBuild when doing some research last month. AFAICT, it really works on C/C++ only. They claim it does builds for .NET, but it doesn't do distributed builds then, essentially canceling it's usefulness for .NET. (If I'm wrong about this, anyone, please show me documentation/examples otherwise.)

                            Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                            S Offline
                            S Offline
                            Stuart Dootson
                            wrote on last edited by
                            #19

                            Ah - sorry, hadn't noticed that. As I do C++ pretty exclusively, a lack of C# didn't really catch my eye :-). I can imagine there might be issues with C# - making sure you've got the same framework versions, referenced assemblies etc, whereas with C/C++ you only involve files (unless you're using #import).

                            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                            J 1 Reply Last reply
                            0
                            • S Stuart Dootson

                              Ah - sorry, hadn't noticed that. As I do C++ pretty exclusively, a lack of C# didn't really catch my eye :-). I can imagine there might be issues with C# - making sure you've got the same framework versions, referenced assemblies etc, whereas with C/C++ you only involve files (unless you're using #import).

                              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                              J Offline
                              J Offline
                              Judah Gabriel Himango
                              wrote on last edited by
                              #20

                              Stuart Dootson wrote:

                              I can imagine there might be issues with C# - making sure you've got the same framework versions, referenced assemblies etc

                              Certainly. The good news is .NET frameworks can install safely side-by-side from 1.0 to the latest. And the latest MSBuilds can target 2.0, 3, 3.5, and 4. So the versioning story there is good, I'm not expecting too many headaches there.

                              Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                              1 Reply Last reply
                              0
                              • E Ennis Ray Lynch Jr

                                I have found that extremely large projects with slow build times can usually be optimized to have fast build times. But that is just my experience. I can tell you, however, that projects with slow build times tend to extract better work from less experienced developers because they are forced to think about their actions a lot more.

                                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

                                J Offline
                                J Offline
                                Judah Gabriel Himango
                                wrote on last edited by
                                #21

                                Ennis Ray Lynch, Jr. wrote:

                                I have found that extremely large projects with slow build times can usually be optimized to have fast build times.

                                Agreed. For example, next week my team is reorganizing our project structure so that we have fewer, larger assemblies. We expect the build times to decrease between 30-50%. Another option is to stop the Copy Local madness, which greatly contributes to build times. (This further suggests the hard disk is one particular bottleneck when it comes to builds.) However, I think many devs don't know how and what to optimize. And even when you can optimize certain things, for large projects or for solutions with many projects, you're still looking at significant build times. I want build times to be near-instant for medium sized projects. I spend probably 20 mintues to an hour per day waiting for builds to finish. I want that to go to near zero.

                                Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                                D 1 Reply Last reply
                                0
                                • J Jorgen Sigvardsson

                                  How much C# code do you have really? In my experience, C# compiles a lot faster than C++ in the order of magnitudes. I have a project with about 120k+ lines of C++ code, and it takes roughly 2-3 minutes to compile on a quad core machine. I don't have nearly as much C# code, only 10k+ maybe. I do know that the C# code compiles blazingly fast though. I think the IDE spends most of its time in starting the C# compiler, rather than waiting for it to complete. I'm really curious to know how much C# code you have. You ought to have the proverbial shitload of code if compilation times are a problem for you...

                                  J Offline
                                  J Offline
                                  Judah Gabriel Himango
                                  wrote on last edited by
                                  #22

                                  Jörgen Sigvardsson wrote:

                                  How much C# code do you have really?

                                  Last I checked, 270,000 LOC. It's probably closer to 300k now.

                                  Jörgen Sigvardsson wrote:

                                  I do know that the C# code compiles blazingly fast though.

                                  It does. The compiling isn't really the issue. You do a compile, it finishes near instantly, then the disk churns as it spits out assemblies and dependencies. Then dependent projects compile, spit out assemblies and depenedencies, etc. until all changed/depedent-on-changed projects are rebuilt. This takes significant time when done locally. One thing I've found is that if you have fewer projects but larger assemblies, build times decrease. However, often times you can't combine projects: separate assemblies for client and server, separate assemblies for shared data between client/server, utility libraries, add-in projects that require their own assemblies, independently-maintained libraries (e.g. a .NET project including the Lucene.NET open source search engine), and so on. What I'm saying is, you often cannot combine many projects. This causes build/run times to slow way down.

                                  Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                                  J R 2 Replies Last reply
                                  0
                                  • T TheGreatAndPowerfulOz

                                    well, i was able to improve the build times considerably where i worked. we had 200+ projects all outputting to individual directories. it took over 1.5 hours to build. i changed the projects to all output to the same directory. reduced build time to under 5 minutes. yes, 5 minutes. using 10k & 15k rpm raptor drives also helped. but yeah, theoretically you could speed things up with a distributed build. the problem is dependencies.

                                    Judah Himango wrote:

                                    blogging on the intarwebs

                                    lol. i still get a kick out of that US Rep. who called them the itarTUBES :laugh: :-D

                                    J Offline
                                    J Offline
                                    Judah Gabriel Himango
                                    wrote on last edited by
                                    #23

                                    ahmed zahmed wrote:

                                    well, i was able to improve the build times considerably where i worked. we had 200+ projects all outputting to individual directories. it took over 1.5 hours to build. i changed the projects to all output to the same directory. reduced build time to under 5 minutes. yes, 5 minutes.

                                    Awesome! I will pass this on to my team here at work. We have maybe 30-40 projects including unit test projects. Takes about 2 and half minutes to build. Not terrible, but when you consider that we do hundreds of builds a day, it adds up.

                                    ahmed zahmed wrote:

                                    the problem is dependencies.

                                    Yes, that's the trick. I'm going to be testing my theory on some big open source .NET projects and see what kind of dependencies can be isolated.

                                    ahmed zahmed wrote:

                                    using 10k & 15k rpm raptor drives also helped.

                                    I believe it. You know, if this idea pans out, I might build some fresh machines with high-speed HDs or SSDs. The builds in the cloud could occur very quickly to get the results back to the client. Just dreaming for now, though. :-)

                                    Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                                    1 Reply Last reply
                                    0
                                    • P PIEBALDconsult

                                      Judah Himango wrote:

                                      2:30 to build. Even 1:00 is insane

                                      Is that hh:mm or mm:ss ?

                                      J Offline
                                      J Offline
                                      Judah Gabriel Himango
                                      wrote on last edited by
                                      #24

                                      2 minutes and 30 seconds. :-) Doesn't sound like much, but when you do many builds per day, and each developer is doing many builds per day, it adds up.

                                      Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                                      1 Reply Last reply
                                      0
                                      • R Rocky Moore

                                        Sure must be some kind of application. If you often have to rebuild so many projects that it takes that long to build, perhaps more thought needs to go into the dependencies to make them not quite so tight. Independence can be a good thing :) I do think the idea of a simple distributed build is a good idea though. It is amazing the functionality was not built in many years ago.

                                        Rocky <>< Recent Blog Post: Chocolate Chip Cookies!

                                        J Offline
                                        J Offline
                                        Judah Gabriel Himango
                                        wrote on last edited by
                                        #25

                                        Rocky Moore wrote:

                                        Sure must be some kind of application. If you often have to rebuild so many projects that it takes that long to build, perhaps more thought needs to go into the dependencies to make them not quite so tight. Independence can be a good thing

                                        Agreed. And we are doing some project-combining next week to make fewer but larger assemblies. Nonetheless, we have unit test projects that need to be separate assemblies, we have client projects separate from server projects (these also cannot be combined), add-in framework assemblies which cannot be combined, shared libraries between client and server, and some server-side components that deliberately are separated from the server assembly so they can be run on a separate machine, and so on. What I'm trying to say is, on larger projects, solutions tend to have many projects, some of which cannot be combined, yet many could be built in parallel.

                                        Rocky Moore wrote:

                                        I do think the idea of a simple distributed build is a good idea though. It is amazing the functionality was not built in many years ago.

                                        Cool, thanks, that's encouraging. Alright, I will pursue this idea further.

                                        Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                                        R 1 Reply Last reply
                                        0
                                        • J Judah Gabriel Himango

                                          Our current project here at work takes about 2:30 to build. Even 1:00 is insane, considering we do many builds per day. Make a change to some low-level component, then suddenly all these dependent projects need to build, and you go on a coffee break as VS thrashes your disk for a while. The idea is to make even large solutions (30-50 projects) build in seconds, rather than minutes. The idea is to eliminate coffee breaks. :)

                                          Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

                                          R Offline
                                          R Offline
                                          Rick York
                                          wrote on last edited by
                                          #26

                                          I went through and converted a bunch of code to my extremist form of include file protection the other day and saw an enourmous improvement in compile speed. In many cases I have seen very large improvements. Basically it amounts to using the include gaurd ifdefs outside the include statement so that they aren't always blindly included if they don't need to be.

                                          R 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