Program runs more slowly with Memory Debugging enabled
The Memory Debugging library performs more checks than the memory
allocation routines of normal runtime. However, these checks make the library
slower.
Solution
If your program runs too slowly when Memory Debugging is enabled, there
are several options you can change to speed it up.
- Try reducing the Heap Debugging option to a lower setting. For
example, if it is currently on High, try changing it to Medium or
Low.
- Increase the heap check interval from the default of 100 to a higher
value. The heap check interval controls how many allocations might
occur between full checks of the heap, which can take some time.
- A higher setting (1000 or above) is recommended if your program
allocates and deallocates memory very frequently, for example from
inside a computation loop.
- You can disable the Store backtraces for memory allocations option,
at the expense of losing backtraces in the View Pointer Details and
Current Memory Usage windows.