Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to leverage multicore CPUs when compiling C# projects in a large solution?

As far as I know, VS2008/MSBuild do not suport multithreaded compilation of C# projets. I don't know if VS2010 supports it. Do you know a 3rd party product or an open source projet that does that?

like image 355
Sylvain Avatar asked Apr 06 '10 01:04

Sylvain


People also ask

How do I force a program to use multiple cores?

Core Settings In Windows 10Type 'msconfig' into the Windows Search Box and hit Enter. Select the Boot tab and then Advanced options. Check the box next to Number of processors and select the number of cores you want to use (probably 1, if you are having compatibility issues) from the menu. Select OK and then Apply.

Does compiling use multiple cores?

Building larger solutions in Visual Studio can be tediously slow. Part of the reason is that the compiler does not make use of multiple CPU cores well.

How can I improve my multicore performance?

Multicore processing can increase performance by running multiple applications concurrently. The decreased distance between cores on an integrated chip enables shorter resource access latency and higher cache speeds when compared to using separate processors or computers.

How do multiple cores communicate?

Currently, the core-to-core communication is performed by sending and receiving software commands between cores. Therefore, the processor needs to allocate a considerable part of its computational resources to executing these software commands.


1 Answers

Indeed MSBuild does support multiple cores; though it's a bit of a hack with some limitations.

It's easier from the commandline.

Likewise, some build servers (teamcity is one if I recall) can have build runners on multiple machines to further reduce build times.

like image 75
Steven Evers Avatar answered Oct 01 '22 02:10

Steven Evers