gpt4 book ai didi

c# - 从VS2010 IDE启动时,为什么C#Release 3x会变慢?

转载 作者:太空宇宙 更新时间:2023-11-03 17:33:00 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com