Jump to content

  • Log In with Google      Sign In   
  • Create Account

debug visual studio vs debug.exe


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1   Members   

148
Like
0Likes
Like

Posted 07 February 2013 - 06:45 PM

ok , i have a weird problem , i just ran a long test

 

if i run my project in visual studio debug , it takes 11min 23 seconds to load and run

 

if i copy over the debug.exe and run it from project folder , it takes 27 seconds

 

 

i  have to assume i  did something odd in the settings in visual studio, any one any ideas



#2   Moderators   

11527
Like
2Likes
Like

Posted 07 February 2013 - 07:05 PM

When run from the debugger an MSVC application will have a few differences. For example, IsDebuggerPresent() will return true rather than false. The biggest difference from a performance standpoint is that the debug memory allocator will be used. Allocations will be larger with more sanity checking information, impacting cache misses and increasing the time necessary for each allocation and deallocation. If your program does a lot of small allocations this can really add up.

#3   Members   

4075
Like
0Likes
Like

Posted 08 February 2013 - 01:38 AM

Furthermore, Visual Studio tries to find all the symbols for all runtime dependencies of your program, sets up thread monitoring, builds runtime metadata for your variables, etc.


Niko Suni





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.