Reputation: 737
Any way to speed this up without losing any of the debugging functionality? Compared to debugging with clang on mac/linux the generated code is horribly slow.
Upvotes: 2
Views: 101
Reputation: 3273
This blog post has the full explanation of the OP's solution - referred to in his comment on Nikolay's answer: "I gained alot more back by setting "basic runtime checks" to Default. This got me almost to the speed of clang's debug builds."
This solution still works for the same problem in VS 2015.
Upvotes: 0
Reputation: 12245
You could also try to disable debug heap by setting _NO_DEBUG_HEAP=1
See here more information about that:
http://ofekshilon.com/2014/09/20/accelerating-debug-runs-part-1-_no_debug_heap-2/
Upvotes: 2
Reputation: 40689
Find out why it's slow. This is how I find out. My off-the-cuff-probably-wrong guess is it could be in data validation. When you find out what it's doing you can probably turn it off by tweaking some compiler flags.
A way to do that is to make a release configuration, clone it, and then turn on symbol-retention and turn off compile-time optimization. This way you can debug it, but without turning on all the data structure validation, index checking, debug-new, etc .
Upvotes: 0