Is there a significant overhead associated with calling OutputDebugString in release build?
I was curious about this topic so I did some research.
I've posted the results, the source code and project files so that you can repeat the tests for your setup. Covers running a release mode app without anything monitoring OutputDebugString and then with Visual Studio 6, Visual Studio 2005 and Visual Studio 2010 monitoring OutputDebugString to see what differences in performance there are for each version of Visual Studio.
Interesting results, Visual Studio 2010 processes OutputDebugString information up to 7x slower than Visual Studio 6.
Full article here: Whats the cost of OutputDebugString?