在Visual Studio生成“优化code”选项的好处 [英] Benefits of 'Optimize code' option in Visual Studio build

查看:1030
本文介绍了在Visual Studio生成“优化code”选项的好处的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们大部分的C#版本code的是建立与优化code选项关闭。我相信这是为了让code内置的发行模式下更容易调试。

Much of our C# release code is built with the 'Optimize code' option turned off. I believe this is to allow code built in Release mode to be debugged more easily.

由于我们正在创造它连接到后端Web服务(即并非特别处理器的密集型应用程序),如果任何类型的性能损失可以预期又是什么?很简单的桌面软件

Given that we are creating fairly simple desktop software which connects to backend Web Services, (ie. not a particularly processor-intensive application) then what if any sort of performance hit might be expected?

和任何特定的平台可能会受到影响更坏?例如。多处理器/ 64位。

And is any particular platform likely to be worse affected? Eg. multi-processor / 64 bit.

推荐答案

的全部细节可在<一href=\"http://blogs.msdn.com/jaybaz_ms/archive/2004/06/28/168314.aspx\">http://blogs.msdn.com/jaybaz_ms/archive/2004/06/28/168314.aspx.

在短暂的...

在管理code,在运行时的抖动做几乎所有的优化。从该标志产生IL所不同的是pretty小。

In managed code, the JITter in the runtime does nearly all the optimization. The difference in generated IL from this flag is pretty small.

这篇关于在Visual Studio生成“优化code”选项的好处的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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