performancedebuggingbuildrelease

Release vs Debug Build Times


I have always believed that Debug builds are slower than Release builds since the compiler needs to additionally generate debugger information. I was recently surprised to hear one of my colleagues saying that release builds usually take more time. (I believe that it is only because of incremental linking/compiling).

In general, which of the two is faster?


Solution

  • Well, there are a number of variables that could affect things. Here are some reasons Debug could be faster: