• [转]Improving link time with IncrediBuild,减少联合编译器的链接是时间


    http://blog.csdn.net/yacper/article/details/4791092

    重点:

    不要用/LTCG

    将debug信息设为/z7

    IncrediBuild may, in some cases, take longer than Visual Studio to execute the link phase. This is related to the fact that IncrediBuild generates multiple PDB and IDB files when building (one for each concurrent Agent), while Visual Studio only generates one of each of these files.
    If you are using Visual Studio .NET or 2005, try enabling IncrediLink (Agent Settings dialog, Build System page) to speed up incremental links. Read the product documentation for some considerations that need to be taken when using this mode.
    The following suggestions may also help improve link speed:


    1. Try to minimize use of the /LTCG linker option in local builds, since this option moves a significant portion of the build processing from the compilation phase to the linking phase, significantly impacting IncrediBuild's performance improvement.

    尽量不用LTCG,一般情况下inrementalbuild

    2. If the max. number of Agents allowed to participate in a build exceeds 12, decrease this option and then rebuild the project (this setting can be found in the Coordinator Settings dialog, Agent Assignment page).

    agents设为12以下,物极必反,协调也需要cpu时间

    3. If you are running a "live" anti-virus scanner (or any other file-scanning software), disable its operation on the project's intermediate and output folder or on typical intermediate file extensions (*.pdb, *.obj, *.idb, *.sbr, *.pch).

    关掉杀毒软件的查询

    4. If your typical build operation builds multiple projects in parallel, consider using the "Limit concurrent PDB instances" option (Agent Settings dialog, "Visual Studio Builds|Advanced" page). This will decrease the number of PDB files, speeding up builds, but will also limit the number of concurrent files from the same project configurationthat IncrediBuild will build at any single time.

    这个不实用。


    5. Make sure you are running the latest version of IncrediBuild.


    6. Periodically rebuilding the project (even nightly) can reduce PDB fragmentation and help improve subsequent link times.

    定时重编project,减少pdb的碎片。

    7. Changing the debug information format to /Z7 can also help improve link times.

    将debug信息设成z7,显然使用这个功能,就不能编辑并继续了,当然,这对于vc2005来说是无所谓的,因为05的c++就没这功能,哈哈

  • 相关阅读:
    将 20M 文件从 30 秒压缩到 1 秒,我是如何做到的?
    Java 四种线程池newCachedThreadPool,newFixedThreadPool,newScheduledThreadPool,newSingleThreadExecutor
    HTTP返回状态码及错误大全
    network ifconfig
    linux lsof
    thrift types
    thrift concepts
    network uds(Unix domain socket)
    kernel 自定义coredump文件名及位置
    word 段内与段间换行
  • 原文地址:https://www.cnblogs.com/pulas/p/2454055.html
Copyright © 2020-2023  润新知