Possible Duplicate:
Disassembly view of C# 64-bit Release code is 75% longer than 32-bit Debug code?
我有一个非常简单的C#控制台应用程序,它对大量元素进行了排序(只有几行带有数组操作的代码)。
当我使用F5或Ctrl-F5从Visual Studio IDE启动发布代码时,该程序的速度比直接从Win-Explorer启动时的速度慢3倍。41.140 seconds when launched from VS 2010 IDE 13.950 seconds when launched by double-clicking myprogram.exe
为什么???
最佳答案
与没有调试器一起启动程序总是比没有调试器要慢得多。
关于c# - 从VS2010 IDE启动时,为什么C#Release 3x会变慢? ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12799303/