I am working on a program (using MS Visual Studio 2005 professional) and have incorporated some Standard Template Library vectors. The program is very math intensive. When I run in debug mode, the debug checking provided by STL slows the program to the point that I am getting no work done. The program is slowed by almost a factor of 100. What takes 35 sec in release mode takes almost an hour in debug.
The part that uses the vectors is already working fine, but I have to process through that to get to the part that still needs to be debugged.
I have tried setting
#define _HAS_ITERATOR_DEBUGGING 0
#define _SECURE_SCL 0
and I have also used an #undef for each of these values prior to setting them. There is no difference in performance.
Is there any way to turn off the debug checking for STL vectors?