visual-studio-2008之代码契约(Contract)减慢 Visual Studio 2008

powertoolsteam 阅读:95 2024-11-24 20:56:43 评论:0

自从我开始在 Visual Studio 2008 (C#) 中使用代码契约后,构建我的 dll 变得非常缓慢。我没有打开静态检查,但显然重写需要永远...

有没有办法解决这个问题,会在未来的 Microsoft Code Contracts 版本中得到改进吗?

更新:在 VS2008 中构建时,即使在程序集属性中关闭静态分析,它也会为每个 dll 运行静态分析...

请您参考如下方法:

他们意识到性能问题并正在努力改进这些问题。然而,他们能够加快多少还有待观察。

以下帖子摘自Code Contracts forum .

来自Build Slowdown主题:

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.

来自cccheck - excessive memory & processor usage?主题:

Yes, we are aware of the memory/time consumption issues on large projects, or projects that reference many dlls. We have made some progress on this on our internal builds and hope to release that soon.

For static checking large projects, the checker is quite slow and we are working on incremental checking which should also help.


标签:程序员
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

关注我们

一个IT知识分享的公众号