VS构建发布模式 - 性能影响 [英] VS Build Release Mode - Performance Impact

查看:67
本文介绍了VS构建发布模式 - 性能影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发布模式构建是否比调试模式构建更快?

Is release mode build has more speed than Debug mode build ?

推荐答案

通常,。但是,依赖于场景可能或多或少具有重要意义。例如,请参阅C#:调试与发布性能 [ ^ ]。
Usually, yes. However, depennding on the scenario could be more or less significant. See, for instance "C#: Debug vs. Release performance"[^].


要添加到Carlo所说的内容,请及时查看!

Diagnostics命名空间包含秒表类 [ ^ ],这是设计的用于计算你的代码需要多长时间。



值得执行相同的代码几千次来摆脱外部因素,例如导致你的其他任务和应用程序暂停。
To add to what Carlo says, time it and see!
The Diagnostics namespace includes the Stopwatch class[^], which is designed for timing how long your code takes.

It's worth executing the same code a couple of thousand times to get rid of external factors such as other tasks and apps causing yours to be suspended.


这篇关于VS构建发布模式 - 性能影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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