How to speed up c++ linking time

后端 未结 4 703
自闭症患者
自闭症患者 2021-02-04 05:17

Is there any way, to optimalize linking time in MS Visual studio C++ (2005) ? We\'re using Xoreax Incredibuild for compilation speed up, but nothing for link.

Currently

4条回答
  •  无人及你
    2021-02-04 05:50

    Have you considered improving hardware?
    Do you use a separate physical hard drive for for the build? What kind of drives do you use?

    As a general suggestion: throw in some memory, get a Velociraptor, put only sources and build directory there, measure again. If that helps, consider a RAID 0.

    I've heard reports that upgrading from an XP core to an W2K3 core improved build times notably, presumably due to better memory management and caching.

    As a suggestion for changing your code, you could move some functionality to a DLL, and link in parallel. But I'd not make such a change just to improve build times.

提交回复
热议问题