Slow incremental connection performance

I have a large binary that is built from many static libraries and standalone cpp files. It is configured to use incremental binding, all optimizations are disabled on /Od - this is a debug build.

I noticed that if I changed any separate cpp file, then incremental binding will be performed quickly - 1 min. But if I change any cpp in any static lib, then it works for a long time - 10 minutes, at the same time as a regular link. In this case, I am not benefiting from incremental binding. Is it possible to speed it up? I am using VS2005.

+8
c ++ performance visual-studio visual-studio-2005 incremental-linking
source share
3 answers

Set "Use library dependency tabs" on the Linker General properties page for your project. This will link the individual .obj files to the dependent .lib instead of .lib, which can have several different side effects.

+7
source share

I am going to give you a different answer. Hardware.

What is your development environment? In any case, to get more RAM or put your project on a solid state drive? I found that using SSD accelerated my order links on my work projects. Helped a little for compilation, but the connection was huge. Of course, an accelerated system also helped.

+2
source share

If I understand correctly (after using Visual Stuio for several years), the incremental snap function does not work for object files that are part of static libraries.

One way to solve this problem is to restructure the solution so that your application project contains all the source files.

0
source share

All Articles