Does the number of projects in a Visual Studio 9 solution impact the solution load and build times?

前端 未结 10 1255
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 16:00

I\'m specifically interested in solution load times & build times - does fewer solutions mean better performance?

Note that I\'m not referring to the perfor

10条回答
  •  无人及你
    2021-02-04 16:06

    50-60 sounds like a lot to me. I find that with lots of projects, opening Visual Studio can take a long time. Build time may be bad if you change a project which lots of other projects depend on, but I don't know how different that is between 10 projects with 20 classes in each and 100 projects with 2 projects in each. (In other words, I'm not sure of the per-project overhead in building.) Even when you don't change anything, presumably each project has to detect whether or not it needs to rebuild anything - I can't imagine that's free, but it's hard to give anything more definite without trying it with your own code.

    I've been in various companies which have a bunch of projects each with just a few classes in - classes which could very easily be amalgamated into a single project. That has maintenance/manageability benefits as well, in my experience. (Don't do it willy-nilly, of course - just be sensible.)

    If you've actually got sensibly-sized projects, just a lot of them, consider splitting the solution up if possible. If they're all tiny projects, consider combining some of them. If you don't find yourself waiting for Visual Studio anyway (opening/building) then don't worry too much.

提交回复
热议问题