在Visual Studio 2005中加快编译速度 [英] Speed up compilation in Visual Studio 2005

查看:105
本文介绍了在Visual Studio 2005中加快编译速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于主要包含C ++项目的解决方案,在Visual Studio 2005中加快编译时间的最佳方法是什么?

What are the best ways to speed up compilation time in Visual Studio 2005 for a solution containing mainly C++ projects?

推荐答案

除了预编译标头,还有其他一些可能会减慢您的行为:

Besides pre-compiling headers, there are number of other things that could be slowing you down:


  • 病毒检查软件 - 在构建。如果你有一个病毒检查程序运行尝试关闭它,看看你得到什么样的改善。

  • 低内存 - 没有足够的内存将导致更多的磁盘读取和减慢你。 cont - >

  • 缓慢的硬盘 - 你必须写光盘,无论如何,一个缓慢的驱动器,如许多笔记本电脑和低端系统,将杀死你的构建。

  • 当然,处理器速度很慢。

  • 不太可能,但是:Check并查看您的项目是否引用了网络共享。

  • Virus checking software - can have a nasty impact on builds. If you have a virus checker running try to turn it off and see what sort of improvement you get.
  • Low RAM - Not enough RAM will cause many more disc reads and slow you down. cont ->
  • Slow HDD - You have to write to disc regardless and a slow drive, like those present in many laptops and lower-end systems, will kill your builds. You can get a faster drive, a RAID array or SSD
  • Slow processor(s)... of course.
  • Unlikely, but: Check and see if your projects are referencing network shares. Having to pull files across the network with each build would a big slowdown.

EDIT 几乎没有什么想法:

EDIT Few more thoughts:


  • 如果您的解决方案包含大量项目,您可以考虑创建其他Sub解决方案,工作。这种可能性取决于您的项目之间的相互关系。

  • 项目构建可以具有与其相关联的前后构建事件命令。检查您的项目的属性,看看是否有指定的任何昂贵的构建事件。

这篇关于在Visual Studio 2005中加快编译速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆