[转]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++就没这功能,哈哈
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构