[英]C# - application runs much more slowly after being published from Visual Studio 2008
I've written a windows form application using C# in Visual Studio 2008. It involves a lot of calculations. 我已经在Visual Studio 2008中使用C#编写了一个Windows窗体应用程序。它涉及许多计算。 When I build it and run it in VS 2008, it takes some time and it's able to produce results I wanted. 当我构建它并在VS 2008中运行它时,它会花费一些时间,并且能够产生我想要的结果。 However, when I published it from VS into a *.application file, it runs much more slowly. 但是,当我将它从VS发布到* .application文件中时,它的运行速度要慢得多。
May I know how to solve this problem? 我可以知道如何解决这个问题吗? I need to demo the software thus I need the stand-along application to run equally fast. 我需要演示软件,因此我需要独立应用程序来同样快速地运行。
Thanks a lot for your help! 非常感谢你的帮助!
You could run a profiler to see what is taking the time... 您可以运行探查器以查看花费时间...
http://www.jetbrains.com/profiler/?gclid=CJ_a4ZnxuagCFQoY4QodFGfACQ http://www.jetbrains.com/profiler/?gclid=CJ_a4ZnxuagCFQoY4QodFGfACQ
It is also sensible to suggest that you make sure you compile your application in release mode as it will remove all of the debug overhead in the running application. 建议您确保以发布模式编译应用程序,这也很明智,因为它将消除正在运行的应用程序中的所有调试开销。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.