建立减速 [英] Build Slowdown

查看:69
本文介绍了建立减速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试代码合同,以便在我工作的公司采用。

最让我印象深刻的是这个库。但是我有一个大问题,建立减速。

自从我开始使用Code Contracts以来,我的构建时间几乎是两倍。

我发现它非常烦人,对于我的许多同事来说这是不可接受的,特别是因为我的公司使用VS2009 Pro,因为没有静态检查或PEX,所以大大降低了CC的价值。

我希望你能在不久的将来解决这个问题。您是否有任何时间框架可以改善此问题?
在此期间,我想就最佳做法提出一些建议,以减少CC的构建时间损失。

关心

I'm currently experimenting with code contracts for possible adoption at the company i work at.

For the most Ive been impressed with what this library. However I have a big issue, build slowdown.

I'm experiencing almost twice as long build times since I started with Code Contracts.

I find it very annoying and for many of my co-workers it's unacceptable, especially since my company uses VS2009 Pro which greatly reduces the value of CC since there is no static checking or PEX.

I hope that you will solve this problem in the near future. Do you have any time frame in which this issue might be improved?

In the meantime I would like to ask for some advice on best practices in order to reduce the build time penalty of CC.

Regards

推荐答案

感谢龙的反馈。我们知道重写者所施加的减速(我们也受其影响)。它将来会变得更好,但我恐怕不能给你任何关于何时和多少的承诺。

至于最佳实践,如果构建放缓目前是不可接受的定期开发,然后我建议如下:

- 为带有契约的构建创建一个新的解决方案配置(例如DebugWithContracts)
- 仅在此配置中为您想要的项目启用合同检查
- 现在,想要运行合同构建的开发人员或自动构建可以通过选择DebugWithContracts配置来实现这一点。
希望这会有所帮助。
Thanks for the feedback Dragon. We are aware of the slow down imposed by the rewriter (we suffer from it too). It will get better in the future, but I'm afraid I can't give you any promise of when and how much.

As for best practices, if the build slowdown is unacceptable at the moment for regular development, then I would suggest the following:

- Create a new solution configuration for builds with contracts (e.g. DebugWithContracts )
- Enable contract checking only in this configuration for the projects you want
- Now developers or automated builds that want to exercise the contract builds can do so by selecting the DebugWithContracts configuration

Hope this helps.


这篇关于建立减速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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