Why is my Visual C ++ 2008 x64 building 5 times slower than x86 builds?

I am trying to improve the build time for my product. We use continuous integration, and our assemblies now take 2 hours.

I looked at the NANT timings and see a lot of places that are slower than they should be, but one of them is the x64 builds of our Visual C ++ projects. Here is an example of timings compared to x86 builds of the same code:

Win32 release: 8 '49 "x64 release: 41 '8"

x64 is about 5 times slower. Again, this is for the same code.

Has anyone else experienced such a build time mismatch between x86 and x64? Any suggestions for closing the gap?

NOTE. I know tools to improve overall assembly performance, such as distributed Xoreax assemblies and TeamCity simultaneous assemblies, and I will also explore both of them, but I cannot help but feel that there should be some way to put x64 back in line without resorting to third-party tools.

+3
source share
2 answers

Check if the project build options are the same for both. When you select x64, VS basically loads the new project settings, and they can be very nice different. For example, check if an incremental building is included in x64.

+2
source

, , x64. , DLL, , , . , x64-back-end - .NET, x86 - . . , . CPU/disk/RAM , .

0

Source: https://habr.com/ru/post/1721545/


All Articles