I have an application in C#, which connects to a database and generates some Excel report.
When I run the application inside Visual Studio in Debug mode, this operation takes approx. 101736 milliseconds.
When I open the bin\Debug folder and run the executable from there, that same process (same database, same parameters) takes 33135 milliseconds.
But I'm running the same program.
What can be causing such a huge difference in performance?
I've done this several times, running the application from Visual Studio is always much more slower than running the executable from Windows Explorer.
I'm using Visual Studio 2008 C# Express Edition.
The primary causes of slowdown in the Visual Studio debugger are the following:
return a+b; and called hundreds of thousands of times, you'll get hit hard.Debug.WriteLine or Trace.WriteLine many (read: thousands of) times, it could slow your application down while attached to the debugger.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With